Przeglądaj źródła

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

George C. Privon 8 lat temu
rodzic
commit
7dc0e70c65
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      cgame.py

+ 5 - 2
cgame.py

@@ -35,9 +35,8 @@ class cgame:
         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'),
-                         ('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'),
                          ('s', '(current) score and game status'),
                          ('q', 'quit (will be removed for real gameplay'),
@@ -157,6 +156,10 @@ class cgame:
                 expanIDs = [int(x) for x in expaninput.split()]
                 for expanID in expanIDs:
                     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:
                         if expanID == dbexpan[0]:
                             self.expansionIDs.append(expanID)