Jelajahi Sumber

update command summary for scoring, only include builder move command if that expansion is being used

George C. Privon 8 tahun lalu
induk
melakukan
7dc0e70c65
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      cgame.py

+ 5 - 2
cgame.py

@@ -35,9 +35,8 @@ class cgame:
         Initialize some variables and set up a game
         Initialize some variables and set up a game
         """
         """
 
 
-        self.commands = [('r', 'record score and advance turn'),
+        self.commands = [('r', 'record score'),
                          ('t', 'advance turn, no score'),
                          ('t', 'advance turn, no score'),
-                         ('b', 'additional turn for a player due to a builder (use for the 2nd play by a player)'),
                          ('e', 'end game (or play if already in postgame scoring'),
                          ('e', 'end game (or play if already in postgame scoring'),
                          ('s', '(current) score and game status'),
                          ('s', '(current) score and game status'),
                          ('q', 'quit (will be removed for real gameplay'),
                          ('q', 'quit (will be removed for real gameplay'),
@@ -157,6 +156,10 @@ class cgame:
                 expanIDs = [int(x) for x in expaninput.split()]
                 expanIDs = [int(x) for x in expaninput.split()]
                 for expanID in expanIDs:
                 for expanID in expanIDs:
                     matched = False
                     matched = False
+                    # only add the additional builder command if Traders &
+                    # Builders is being played
+                    if expanID == 2:
+                        self.commands.append(('b', 'additional turn for a player due to a builder (use for the 2nd play by a player)'))
                     for dbexpan in dbexpans:
                     for dbexpan in dbexpans:
                         if expanID == dbexpan[0]:
                         if expanID == dbexpan[0]:
                             self.expansionIDs.append(expanID)
                             self.expansionIDs.append(expanID)