mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-22 03:04:09 -04:00
Added Fair Maids game.
This commit is contained in:
parent
9c604ca806
commit
442d75aeef
4 changed files with 36 additions and 2 deletions
15
html-src/rules/fairmaids.html
Normal file
15
html-src/rules/fairmaids.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<h1>Fair Maids</h1>
|
||||
<p>
|
||||
Spider type. 1 deck. No redeal.
|
||||
|
||||
<h3>Object</h3>
|
||||
<p>
|
||||
Group all the cards in sets of 13 cards in descending sequence
|
||||
by alternate color from King to Ace and move such sets to the
|
||||
foundations.
|
||||
|
||||
<h3>Quick Description</h3>
|
||||
<p>
|
||||
Like <a href="willothewisp.html">Will o' the Wisp</a>,
|
||||
but sequences are by alternate color, and four cards per
|
||||
pile.
|
|
@ -10,7 +10,8 @@ by suit from King to Ace and move such sets to the foundations.
|
|||
<h3>Quick Description</h3>
|
||||
<p>
|
||||
Exactly like <a href="spiderette.html">Spiderette</a>,
|
||||
but a little bit easier due to the different layout.
|
||||
but a little bit easier due to the different layout, consisting of
|
||||
seven piles of three cards each.
|
||||
|
||||
<h3>History</h3>
|
||||
<p>
|
||||
|
|
|
@ -548,7 +548,7 @@ class GI:
|
|||
tuple(range(22217, 22219))),
|
||||
('fc-2.14', tuple(range(811, 827))),
|
||||
('fc-2.15', tuple(range(827, 855)) + tuple(range(22400, 22407))),
|
||||
('dev', tuple(range(855, 870)))
|
||||
('dev', tuple(range(855, 871)))
|
||||
)
|
||||
|
||||
# deprecated - the correct way is to or a GI.GT_XXX flag
|
||||
|
|
|
@ -45,6 +45,7 @@ from pysollib.stack import \
|
|||
SS_FoundationStack, \
|
||||
SS_RowStack, \
|
||||
Spider_AC_Foundation, \
|
||||
Spider_AC_RowStack, \
|
||||
Spider_SS_Foundation, \
|
||||
Spider_SS_RowStack, \
|
||||
StackWrapper, \
|
||||
|
@ -284,6 +285,21 @@ class WillOTheWisp(Spiderette):
|
|||
self._startAndDealRow()
|
||||
|
||||
|
||||
# ************************************************************************
|
||||
# * Fair Maids
|
||||
# ************************************************************************
|
||||
|
||||
class FairMaids(Spiderette):
|
||||
RowStack_Class = Spider_AC_RowStack
|
||||
Foundation_Class = Spider_AC_Foundation
|
||||
Hint_Class = CautiousDefaultHint
|
||||
|
||||
def startGame(self):
|
||||
for i in range(3):
|
||||
self.s.talon.dealRow(flip=0, frames=0)
|
||||
self._startAndDealRow()
|
||||
|
||||
|
||||
# ************************************************************************
|
||||
# * Simple Simon
|
||||
# ************************************************************************
|
||||
|
@ -1608,3 +1624,5 @@ registerGame(GameInfo(788, AutumnLeaves, "Autumn Leaves",
|
|||
GI.GT_SPIDER, 1, 0, GI.SL_MOSTLY_SKILL))
|
||||
registerGame(GameInfo(825, ScorpionTowers, "Scorpion Towers",
|
||||
GI.GT_SPIDER | GI.GT_OPEN, 1, 0, GI.SL_SKILL))
|
||||
registerGame(GameInfo(870, FairMaids, "Fair Maids",
|
||||
GI.GT_SPIDER, 1, 0, GI.SL_BALANCED))
|
||||
|
|
Loading…
Add table
Reference in a new issue