mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
A more traditional Double FreeCell variant.
This commit is contained in:
parent
cb7c094ad4
commit
8c41f7be61
5 changed files with 65 additions and 1 deletions
22
html-src/rules/doublefreecell.html
Normal file
22
html-src/rules/doublefreecell.html
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<h1>Double FreeCell</h1>
|
||||||
|
<p>
|
||||||
|
FreeCell type. 2 decks. No redeal.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Quick Description</h3>
|
||||||
|
<p>
|
||||||
|
Like <a href="freecell.html">FreeCell</a>,
|
||||||
|
but with two decks and six free cells. The
|
||||||
|
aces are moved to the foundations at the start.
|
||||||
|
<p>
|
||||||
|
There is only one set of foundations - the foundations
|
||||||
|
are built from ace to king, and then wrap around.
|
||||||
|
|
||||||
|
<h3>Notes</h3>
|
||||||
|
<p>
|
||||||
|
This two deck FreeCell variation was invented by
|
||||||
|
Thomas Warfield. For a more traditional variation, see
|
||||||
|
<a href="doublefreecelltraditional.html">Double FreeCell (Traditional)</a>.
|
17
html-src/rules/doublefreecelltraditional.html
Normal file
17
html-src/rules/doublefreecelltraditional.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<h1>Double FreeCell (Traditional)</h1>
|
||||||
|
<p>
|
||||||
|
FreeCell type. 2 decks. No redeal.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Quick Description</h3>
|
||||||
|
<p>
|
||||||
|
Like <a href="freecell.html">FreeCell</a>,
|
||||||
|
but with two decks and eight free cells.
|
||||||
|
|
||||||
|
<h3>Notes</h3>
|
||||||
|
<p>
|
||||||
|
This is a more traditional two deck FreeCell game
|
||||||
|
than <a href="doublefreecell.html">Double FreeCell</a>.
|
12
html-src/rules/triplefreecell.html
Normal file
12
html-src/rules/triplefreecell.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<h1>Triple FreeCell</h1>
|
||||||
|
<p>
|
||||||
|
FreeCell type. 3 decks. No redeal.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Quick Description</h3>
|
||||||
|
<p>
|
||||||
|
Like <a href="freecell.html">FreeCell</a>,
|
||||||
|
but with three decks and ten free cells.
|
|
@ -406,7 +406,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, 813)))
|
('fc-2.14', tuple(range(811, 814)))
|
||||||
)
|
)
|
||||||
|
|
||||||
# deprecated - the correct way is to or a GI.GT_XXX flag
|
# deprecated - the correct way is to or a GI.GT_XXX flag
|
||||||
|
|
|
@ -267,6 +267,17 @@ class TripleFreecell(FreeCell):
|
||||||
self._startDealNumRowsAndDealSingleRow(11)
|
self._startDealNumRowsAndDealSingleRow(11)
|
||||||
|
|
||||||
|
|
||||||
|
class DoubleFreecellTd(TripleFreecell):
|
||||||
|
def createGame(self):
|
||||||
|
TripleFreecell.createGame(self, reserves=8, rows=10, playcards=20)
|
||||||
|
|
||||||
|
def startGame(self):
|
||||||
|
self._startDealNumRows(9)
|
||||||
|
self.s.talon.dealRow()
|
||||||
|
r = self.s.rows
|
||||||
|
self.s.talon.dealRow(rows=r[:4])
|
||||||
|
|
||||||
|
|
||||||
class Cell11(TripleFreecell):
|
class Cell11(TripleFreecell):
|
||||||
def createGame(self):
|
def createGame(self):
|
||||||
TripleFreecell.createGame(self, rows=12, reserves=11)
|
TripleFreecell.createGame(self, rows=12, reserves=11)
|
||||||
|
@ -702,3 +713,5 @@ registerGame(GameInfo(698, CanCan, "Can Can",
|
||||||
registerGame(GameInfo(746, Limpopo, "Limpopo",
|
registerGame(GameInfo(746, Limpopo, "Limpopo",
|
||||||
GI.GT_FREECELL | GI.GT_ORIGINAL, 2, 0,
|
GI.GT_FREECELL | GI.GT_ORIGINAL, 2, 0,
|
||||||
GI.SL_MOSTLY_SKILL))
|
GI.SL_MOSTLY_SKILL))
|
||||||
|
registerGame(GameInfo(813, DoubleFreecellTd, "Double FreeCell (Traditional)",
|
||||||
|
GI.GT_FREECELL | GI.GT_OPEN, 2, 0, GI.SL_MOSTLY_SKILL))
|
||||||
|
|
Loading…
Add table
Reference in a new issue