mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Added Pitt the Younger game.
This commit is contained in:
parent
e7ebe6fb38
commit
956bc359b6
3 changed files with 26 additions and 2 deletions
12
html-src/rules/pitttheyounger.html
Normal file
12
html-src/rules/pitttheyounger.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<h1>Pitt the Younger</h1>
|
||||||
|
<p>
|
||||||
|
Gypsy type. 2 decks. No redeals.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Quick Description</h3>
|
||||||
|
<p>
|
||||||
|
Like <a href="churchill.html">Churchill</a>,
|
||||||
|
but with eleven cards in the "Devil's Six".
|
|
@ -549,7 +549,7 @@ class GI:
|
||||||
tuple(range(22217, 22219))),
|
tuple(range(22217, 22219))),
|
||||||
('fc-2.14', tuple(range(811, 827))),
|
('fc-2.14', tuple(range(811, 827))),
|
||||||
('fc-2.15', tuple(range(827, 855)) + tuple(range(22400, 22407))),
|
('fc-2.15', tuple(range(827, 855)) + tuple(range(22400, 22407))),
|
||||||
('dev', tuple(range(855, 885)))
|
('dev', tuple(range(855, 886)))
|
||||||
)
|
)
|
||||||
|
|
||||||
# deprecated - the correct way is to or a GI.GT_XXX flag
|
# deprecated - the correct way is to or a GI.GT_XXX flag
|
||||||
|
|
|
@ -374,6 +374,8 @@ class Churchill(Game):
|
||||||
|
|
||||||
shallHighlightMatch = Game._shallHighlightMatch_AC
|
shallHighlightMatch = Game._shallHighlightMatch_AC
|
||||||
|
|
||||||
|
DevilCards = 6
|
||||||
|
|
||||||
def createGame(self, **layout):
|
def createGame(self, **layout):
|
||||||
# create layout
|
# create layout
|
||||||
l, s = Layout(self), self.s
|
l, s = Layout(self), self.s
|
||||||
|
@ -400,11 +402,19 @@ class Churchill(Game):
|
||||||
for i in range(1, 5):
|
for i in range(1, 5):
|
||||||
self.s.talon.dealRow(rows=self.s.rows[i:-i], flip=0, frames=0)
|
self.s.talon.dealRow(rows=self.s.rows[i:-i], flip=0, frames=0)
|
||||||
self.startDealSample()
|
self.startDealSample()
|
||||||
for i in range(6):
|
for i in range(self.DevilCards):
|
||||||
self.s.talon.dealRow(rows=[self.s.reserves[0]])
|
self.s.talon.dealRow(rows=[self.s.reserves[0]])
|
||||||
self._startAndDealRow()
|
self._startAndDealRow()
|
||||||
|
|
||||||
|
|
||||||
|
# ************************************************************************
|
||||||
|
# * Pitt the Younger
|
||||||
|
# ************************************************************************
|
||||||
|
|
||||||
|
class PittTheYounger(Churchill):
|
||||||
|
DevilCards = 11
|
||||||
|
|
||||||
|
|
||||||
# register the game
|
# register the game
|
||||||
registerGame(GameInfo(21, DoubleKlondike, "Double Klondike",
|
registerGame(GameInfo(21, DoubleKlondike, "Double Klondike",
|
||||||
GI.GT_KLONDIKE, 2, -1, GI.SL_BALANCED))
|
GI.GT_KLONDIKE, 2, -1, GI.SL_BALANCED))
|
||||||
|
@ -452,3 +462,5 @@ registerGame(GameInfo(822, DoubleTrigon, "Double Trigon",
|
||||||
registerGame(GameInfo(828, Churchill, "Churchill",
|
registerGame(GameInfo(828, Churchill, "Churchill",
|
||||||
GI.GT_GYPSY, 2, 0, GI.SL_BALANCED,
|
GI.GT_GYPSY, 2, 0, GI.SL_BALANCED,
|
||||||
altnames=('Prime Minister')))
|
altnames=('Prime Minister')))
|
||||||
|
registerGame(GameInfo(885, PittTheYounger, "Pitt the Younger",
|
||||||
|
GI.GT_GYPSY, 2, 0, GI.SL_BALANCED))
|
||||||
|
|
Loading…
Add table
Reference in a new issue