Jelajahi Sumber

print token type in score confirmation message

George C. Privon 7 tahun lalu
induk
melakukan
3d476d713f
2 mengubah file dengan 7 tambahan dan 1 penghapusan
  1. 4 0
      CHANGELOG.md
  2. 3 1
      cgame.py

+ 4 - 0
CHANGELOG.md

@@ -4,6 +4,10 @@
 
 ### 0.4.3 (in progress)
 
+#### Enhancements
+
+* Print token type in scoring confirmation message. Update formatting.
+
 #### Bug Fixes
 
 * Update single-game and score distribution demo scripts to generalize color cycler and hatching for larger numbers of players.

+ 3 - 1
cgame.py

@@ -350,8 +350,10 @@ class cgame:
         score['comments'] = input("Enter any comments you would like saved (a single line): ")
 
         # check score input to make sure it's correct
+        _sys.stdout.write('\n')
         _sys.stdout.write(', '.join([self.getPlayerName(x) for x in score['playerIDs']]) + ' ')
-        _sys.stdout.write('scores {0:d} points on a '.format(score['points']) + score['scoretype'] + '.\n')
+        _sys.stdout.write('scores {0:d} points on a '.format(score['points']) + score['scoretype'])
+        _sys.stdout.write(' with ' + score['tokens'] + '.\n')
         answer = input("Is this correct? (y/n) ")
         if not _re.match('y', answer, _re.IGNORECASE):
             return 1