Kaynağa Gözat

spelling in CHANGELOG, fix off-by-one when The River is used. Fixes #15

George C. Privon 7 yıl önce
ebeveyn
işleme
2ba9363a61
2 değiştirilmiş dosya ile 8 ekleme ve 3 silme
  1. 3 2
      CHANGELOG.md
  2. 5 1
      cgame.py

+ 3 - 2
CHANGELOG.md

@@ -16,7 +16,8 @@
 
 * Fixed bug where `ScoreProbByType.ipynb` sample script failed when showing PDFs for trade token score distributions.
 * Use `ORDER BY` in some analysis queries to ensure turn/score information is returned in the proper order.
-* Minor plotting code updates in analysis to fix deprecations in matplotlib.
+* Minor plotting code updates in analysis to fix depredations in matplotlib.
+* Fix off-by-one error in number of tiles remaining which occurs when The River expansion is in use.
 
 ### 0.4.0 (11 November 2018)
 
@@ -24,7 +25,7 @@
 
 * add a configuration file specifying the database location
 * add a utilities directory for scripts which should not be needed for normal operation but may be useful for working around issues.
-* add scoring capability for Trade tokens (Traders & Builders Expanion). Token allocation is not automatically tracked (this can be tracked manually using the scoring comments). Trade token scores are entered during the post-game scoring period.
+* add scoring capability for Trade tokens (Traders & Builders Expansion). Token allocation is not automatically tracked (this can be tracked manually using the scoring comments). Trade token scores are entered during the post-game scoring period.
 
 ## 0.3 Series
 

+ 5 - 1
cgame.py

@@ -198,11 +198,15 @@ class cgame:
                         _sys.stderr.write("Error: input must be a list of integers separated by spaces.\n")
                 for expanID in expanIDs:
                     matched = False
-                    # add the builder cmd if Traders & Builders is used
                     if expanID == 2:
+                        # add the builder cmd if Traders & Builders is used
                         self.commands.append(('b', 'additional turn for a player due to a builder (use for the 2nd play by a player)'))
                     elif expanID == 5:
+                        # add Abbey placement command
                         self.commands.append(('a', 'Player places an abbey tile instead of a tile drawn from the pile'))
+                    elif expanID == 101:
+                        # decrement totaltiles because the base pack starting tile is not used
+                        self.totaltiles -= 1
                     for dbexpan in dbexpans:
                         if expanID == dbexpan[0]:
                             self.expansionIDs.append(expanID)