diff --git a/game.py b/game.py index 1e6ec59d245818de055362f5030251926b69d959..2ec48902a76008775d8c68d5b738e849b71d883f 100644 --- a/game.py +++ b/game.py @@ -2,9 +2,11 @@ import agent import matplotlib.pyplot as plt import numpy as np import math +import utilis class game(): def __init__(self): - self.thing = 0 \ No newline at end of file + datamap = utilis.read() + self.N = datamap['N'] \ No newline at end of file diff --git a/utilis.py b/utilis.py index 30ad45b7bcefb32575f3445519d9cc6485223818..097bc715238b2512757ae1bf2fdf5cad4721fc87 100644 --- a/utilis.py +++ b/utilis.py @@ -2,3 +2,12 @@ file = open("workfile","r") print(file.readline()) +# regular expression + + +def read(): + + + map = {'N':100, 'M':2} + + return map