mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Added Smokey game.
This commit is contained in:
parent
8bef814a05
commit
5357713b87
3 changed files with 34 additions and 1 deletions
18
html-src/rules/smokey.html
Normal file
18
html-src/rules/smokey.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<h1>Smokey</h1>
|
||||||
|
<p>
|
||||||
|
Klondike type. 1 deck. 2 redeals.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Quick Description</h3>
|
||||||
|
<p>
|
||||||
|
Like <a href="klondike.html">Klondike</a>,
|
||||||
|
but piles build down by same color
|
||||||
|
(sequences can be moved only if they build down by same suit),
|
||||||
|
and only two redeals.
|
||||||
|
|
||||||
|
<h3>Notes</h3>
|
||||||
|
<p>
|
||||||
|
Smokey was invented by Ann Edwards.
|
|
@ -444,6 +444,7 @@ class GI:
|
||||||
("Art Cabral", (9,)),
|
("Art Cabral", (9,)),
|
||||||
("Richard A. Canfield", (105, 835,)),
|
("Richard A. Canfield", (105, 835,)),
|
||||||
("Lillian Davies and Christa Baran", (605,)),
|
("Lillian Davies and Christa Baran", (605,)),
|
||||||
|
("Ann Edwards", (869,)),
|
||||||
("Robert Harbin", (381,)),
|
("Robert Harbin", (381,)),
|
||||||
("Robert Hogue", (22216, 22217, 22218, 22231,)),
|
("Robert Hogue", (22216, 22217, 22218, 22231,)),
|
||||||
("Erik den Hollander", (344, 544,)),
|
("Erik den Hollander", (344, 544,)),
|
||||||
|
@ -547,7 +548,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, 869)))
|
('dev', tuple(range(855, 870)))
|
||||||
)
|
)
|
||||||
|
|
||||||
# deprecated - the correct way is to or a GI.GT_XXX flag
|
# deprecated - the correct way is to or a GI.GT_XXX flag
|
||||||
|
|
|
@ -220,6 +220,18 @@ class Whitehead(Klondike):
|
||||||
getQuickPlayScore = Game._getSpiderQuickPlayScore
|
getQuickPlayScore = Game._getSpiderQuickPlayScore
|
||||||
|
|
||||||
|
|
||||||
|
# ************************************************************************
|
||||||
|
# * Smokey
|
||||||
|
# ************************************************************************
|
||||||
|
|
||||||
|
class Smokey(Klondike):
|
||||||
|
RowStack_Class = StackWrapper(Whitehead_RowStack, base_rank=KING)
|
||||||
|
Hint_Class = CautiousDefaultHint
|
||||||
|
|
||||||
|
def createGame(self):
|
||||||
|
Klondike.createGame(self, max_rounds=3)
|
||||||
|
|
||||||
|
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
# * Small Harp (Klondike in a different layout)
|
# * Small Harp (Klondike in a different layout)
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
|
@ -1633,3 +1645,5 @@ registerGame(GameInfo(855, HalfKlondike, "Half Klondike",
|
||||||
suits=(1, 2)))
|
suits=(1, 2)))
|
||||||
registerGame(GameInfo(861, Wildflower, "Wildflower",
|
registerGame(GameInfo(861, Wildflower, "Wildflower",
|
||||||
GI.GT_RAGLAN | GI.GT_OPEN, 1, 0, GI.SL_MOSTLY_SKILL))
|
GI.GT_RAGLAN | GI.GT_OPEN, 1, 0, GI.SL_MOSTLY_SKILL))
|
||||||
|
registerGame(GameInfo(869, Smokey, "Smokey",
|
||||||
|
GI.GT_KLONDIKE, 1, 2, GI.SL_BALANCED))
|
||||||
|
|
Loading…
Add table
Reference in a new issue