Skip to content

Commit

Permalink
Corrected erroneous max cards logic in Fourteens game.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Dec 2, 2023
1 parent 50e7d65 commit 3e5631d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pysollib/games/montecarlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ def createGame(self, colsperrow=6):
dir=0, base_rank=NO_RANK))
x, y = l.XM + colsperrow * l.XS, l.YM
s.foundations.append(self.Foundation_Class(x, y, self, suit=ANY_SUIT,
max_move=0, max_cards=52, base_rank=ANY_RANK))
max_move=0, max_cards=(52 * self.gameinfo.decks),
base_rank=ANY_RANK))
l.createText(s.foundations[0], "s")
x, y = self.width - l.XS, self.height - l.YS
s.talon = InitialDealTalonStack(x, y, self)
Expand Down

0 comments on commit 3e5631d

Please sign in to comment.