Procházet zdrojové kódy

announce gameID and location at the start

George C. Privon před 7 roky
rodič
revize
97882a07d8
2 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 1 0
      CHANGELOG.md
  2. 2 0
      cgame.py

+ 1 - 0
CHANGELOG.md

@@ -8,6 +8,7 @@
 
 * Add turn length vs turn number plot to `analysis/SampleAnalysis-SingleGame.ipynb`.
 * Reorder game initilization so that most of the info can be entered before the player order is determined.
+* Announce gameID and location at the start.
 
 ### 0.4.1 (18 November 2018)
 

+ 2 - 0
cgame.py

@@ -125,6 +125,8 @@ class cgame:
         self.conn.commit()
 
         self.gameID = gID[0]
+        
+        _sys.stdout.write("Start game #{0:d} in ".format(self.gameID) + location + "\n")
 
 
     def getPlayers(self):