From cef1684625d6f1ef6712cd30eb623a2283243387 Mon Sep 17 00:00:00 2001
From: Liyao Zhu <stevens.zhu@gmail.com>
Date: Fri, 5 Apr 2019 16:04:27 +1100
Subject: [PATCH] read file
---
game.py | 4 ++++
utilis.py | 2 +-
workfile | 3 ++-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/game.py b/game.py
index bd23c0d..1e6ec59 100644
--- a/game.py
+++ b/game.py
@@ -4,3 +4,7 @@ import numpy as np
import math
+
+class game():
+ def __init__(self):
+ self.thing = 0
\ No newline at end of file
diff --git a/utilis.py b/utilis.py
index 001a23d..30ad45b 100644
--- a/utilis.py
+++ b/utilis.py
@@ -1,4 +1,4 @@
file = open("workfile","r")
-print(file.read())
+print(file.readline())
diff --git a/workfile b/workfile
index 7485360..07cfd59 100644
--- a/workfile
+++ b/workfile
@@ -1 +1,2 @@
-hello test
+N,100
+#Number of players in a game
--
GitLab