From b7fa7bb1e46f5e784def5f440b0583acbd2a960d Mon Sep 17 00:00:00 2001
From: Liyao Zhu <stevens.zhu@gmail.com>
Date: Fri, 5 Apr 2019 16:10:22 +1100
Subject: [PATCH] read file2

---
 game.py   | 4 +++-
 utilis.py | 9 +++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/game.py b/game.py
index 1e6ec59..2ec4890 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 30ad45b..097bc71 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
-- 
GitLab