Skip to content

Commit

Permalink
Added Open Proils game.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Aug 14, 2023
1 parent 8fc0f28 commit a01090d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
12 changes: 12 additions & 0 deletions html-src/rules/openproils.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<h1>Open Proils</h1>
<p>
Fan game type. 1 deck. No redeal.

<h3>Object</h3>
<p>
Move all cards to the foundations.

<h3>Quick Description</h3>
<p>
Just like <a href="roamingproils.html">Roaming Proils</a>,
but with all cards dealt face-up.
2 changes: 1 addition & 1 deletion pysollib/gamedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def _callback(gi, gt=game_type):
('fc-2.20', tuple(range(855, 897))),
('fc-2.21', tuple(range(897, 900)) + tuple(range(11014, 11017)) +
tuple(range(13160, 13163)) + (16682,)),
('dev', tuple(range(906, 908))),
('dev', tuple(range(906, 909))),
)

# deprecated - the correct way is to or a GI.GT_XXX flag
Expand Down
11 changes: 9 additions & 2 deletions pysollib/games/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,13 +725,18 @@ class RoamingProils(Fan):
def createGame(self):
Fan.createGame(self, rows=(5, 5, 5, 2), playcards=5, reserves=1)

def startGame(self):
def startGame(self, flip=0):
for i in range(2):
self.s.talon.dealRow(rows=self.s.rows[:17], flip=0, frames=0)
self.s.talon.dealRow(rows=self.s.rows[:17], flip=flip, frames=0)
self._startAndDealRow()
self.s.talon.dealRow(rows=self.s.reserves)


class OpenProils(RoamingProils):
def startGame(self):
RoamingProils.startGame(self, flip=1)


# ************************************************************************
# * Fascination Fan
# ************************************************************************
Expand Down Expand Up @@ -1174,3 +1179,5 @@ def _saveGameHook(self, p):
GI.GT_FAN_TYPE, 1, 0, GI.SL_BALANCED))
registerGame(GameInfo(894, Cromwell, "Cromwell",
GI.GT_FAN_TYPE | GI.GT_OPEN, 2, 0, GI.SL_MOSTLY_SKILL))
registerGame(GameInfo(908, OpenProils, "Open Proils",
GI.GT_FAN_TYPE, 1, 0, GI.SL_BALANCED))

0 comments on commit a01090d

Please sign in to comment.