1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Added Open Proils game.

This commit is contained in:
Joe R 2023-08-14 18:56:19 -04:00
parent 8fc0f28b2f
commit a01090df65
3 changed files with 22 additions and 3 deletions

View file

@ -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.

View file

@ -565,7 +565,7 @@ class GI:
('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

View file

@ -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
# ************************************************************************
@ -1174,3 +1179,5 @@ registerGame(GameInfo(879, RoamingProils, "Roaming Proils",
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))