mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Added Unusual game.
This commit is contained in:
parent
f2457f03eb
commit
8909990e89
4 changed files with 32 additions and 4 deletions
|
@ -8,8 +8,15 @@ Move all cards to the foundations.
|
||||||
|
|
||||||
<h3>Rules</h3>
|
<h3>Rules</h3>
|
||||||
<p>
|
<p>
|
||||||
The piles build down by suit.
|
Twelve tableau piles of four cards are dealt and the aces are moved to the
|
||||||
Only one card can be moved at a time, and empty spaces cannot be filled.
|
foundations at the start of the game.
|
||||||
|
<p>
|
||||||
|
The tableau piles build down by suit, and the foundations build up by
|
||||||
|
suit. Only one card can be moved at a time, and empty spaces cannot be
|
||||||
|
filled.
|
||||||
<p>
|
<p>
|
||||||
When no more moves are possible click on the talon for a redeal.
|
When no more moves are possible click on the talon for a redeal.
|
||||||
The cards are not re-shuffled, but re-dealt in packs of 4 cards.
|
The cards are not re-shuffled, but re-dealt in packs of 4 cards. Note
|
||||||
|
that due to the way redealing is done, if no cards have been moved since
|
||||||
|
the last redeal, the cards will end up in the same layout as before.
|
||||||
|
This usually means the game is lost.
|
||||||
|
|
12
html-src/rules/unusual.html
Normal file
12
html-src/rules/unusual.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<h1>Unusual</h1>
|
||||||
|
<p>
|
||||||
|
Baker's Dozen type. 2 decks. Unlimited redeals.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Quick Description</h3>
|
||||||
|
<p>
|
||||||
|
Like <a href="cruel.html">Cruel</a>,
|
||||||
|
but with two decks and twenty-four tableau piles.
|
|
@ -423,7 +423,7 @@ class GI:
|
||||||
('fc-2.8', (343001,)),
|
('fc-2.8', (343001,)),
|
||||||
('fc-2.12', tuple(range(774, 811)) + (16681,) +
|
('fc-2.12', tuple(range(774, 811)) + (16681,) +
|
||||||
tuple(range(22217, 22219))),
|
tuple(range(22217, 22219))),
|
||||||
('fc-2.14', tuple(range(811, 823)))
|
('fc-2.14', tuple(range(811, 824)))
|
||||||
)
|
)
|
||||||
|
|
||||||
# deprecated - the correct way is to or a GI.GT_XXX flag
|
# deprecated - the correct way is to or a GI.GT_XXX flag
|
||||||
|
|
|
@ -196,6 +196,7 @@ class GoodMeasure(BakersDozen):
|
||||||
|
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
# * Cruel
|
# * Cruel
|
||||||
|
# * Unusual
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
|
|
||||||
class Cruel_Talon(TalonStack):
|
class Cruel_Talon(TalonStack):
|
||||||
|
@ -268,6 +269,12 @@ class Cruel(CastlesInSpain):
|
||||||
shallHighlightMatch = Game._shallHighlightMatch_SS
|
shallHighlightMatch = Game._shallHighlightMatch_SS
|
||||||
|
|
||||||
|
|
||||||
|
class Unusual(Cruel):
|
||||||
|
|
||||||
|
def createGame(self):
|
||||||
|
return CastlesInSpain.createGame(self, rows=24)
|
||||||
|
|
||||||
|
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
# * Royal Family
|
# * Royal Family
|
||||||
# * Indefatigable
|
# * Indefatigable
|
||||||
|
@ -393,3 +400,5 @@ registerGame(GameInfo(515, Indefatigable, "Indefatigable",
|
||||||
registerGame(GameInfo(664, SpanishPatienceII, "Spanish Patience II",
|
registerGame(GameInfo(664, SpanishPatienceII, "Spanish Patience II",
|
||||||
GI.GT_BAKERS_DOZEN | GI.GT_OPEN, 1, 0,
|
GI.GT_BAKERS_DOZEN | GI.GT_OPEN, 1, 0,
|
||||||
GI.SL_MOSTLY_SKILL))
|
GI.SL_MOSTLY_SKILL))
|
||||||
|
registerGame(GameInfo(823, Unusual, "Unusual",
|
||||||
|
GI.GT_BAKERS_DOZEN | GI.GT_OPEN, 2, -1, GI.SL_BALANCED))
|
||||||
|
|
Loading…
Add table
Reference in a new issue