Skip to content

Commit

Permalink
Update algerian.py
Browse files Browse the repository at this point in the history
I have removed the trailing spaces to ensure AppVeyor passes successfully.
  • Loading branch information
Surani02 authored Oct 17, 2024
1 parent 708d6dd commit e8f8d1a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pysollib/games/algerian.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ class Carthage_Talon(DealRowTalonStack):
def dealCards(self, sound=False):
if sound:
self.game.startDealSample()
# Check if the number of cards equals the number of rows, then
# Check if the number of cards equals the number of rows, then
# deal cards to rows.
if len(self.cards) == len(self.game.s.rows):
n = self.dealRowAvail(rows=self.game.s.rows, sound=False)
else:
# Otherwise, deal to reserves twice (used when rows
# Otherwise, deal to reserves twice (used when rows
# are full or initial deal phase).
n = self.dealRowAvail(rows=self.game.s.reserves, sound=False)
n += self.dealRowAvail(rows=self.game.s.reserves, sound=False)
Expand All @@ -72,7 +72,7 @@ class Carthage(Game):
def createGame(self, rows=8, reserves=6, playcards=12):
l, s = Layout(self), self.s

# Set window size based on the number of decks and other
# Set window size based on the number of decks and other
# layout parameters.
decks = self.gameinfo.decks
foundations = decks * 4
Expand Down Expand Up @@ -125,7 +125,7 @@ def startGame(self):
# * Algerian Patience
# ************************************************************************

# Algerian Patience is a variation of Carthage with different rules
# Algerian Patience is a variation of Carthage with different rules
# for dealing and card movement.


Expand Down Expand Up @@ -163,14 +163,14 @@ def _shuffleHook(self, cards):
return self._shuffleHookMoveToTop(
cards, lambda c: (c.rank == ACE, (c.deck, c.suit)))

# Start the game by dealing rows to the foundations first, then
# Start the game by dealing rows to the foundations first, then
# follow Carthage rules.
def startGame(self):
self.s.talon.dealRow(rows=self.s.foundations, frames=0)
Carthage.startGame(self)


# Register the Carthage, Algerian Patience, and Algerian
# Register the Carthage, Algerian Patience, and Algerian
# Patience (3 Decks) games in the system.
registerGame(GameInfo(321, Carthage, "Carthage",
GI.GT_2DECK_TYPE, 2, 0, GI.SL_MOSTLY_SKILL))
Expand Down

0 comments on commit e8f8d1a

Please sign in to comment.