mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Added four deck terrace variants.
This commit is contained in:
parent
86ee7c9767
commit
323fd511cb
8 changed files with 120 additions and 6 deletions
14
html-src/rules/admiralspatience.html
Normal file
14
html-src/rules/admiralspatience.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<h1>Admiral's Patience</h1>
|
||||
<p>
|
||||
Terrace type. 4 decks. No redeal.
|
||||
|
||||
<h3>Object</h3>
|
||||
<p>
|
||||
Move all cards to the foundations.
|
||||
|
||||
<h3>Quick Description</h3>
|
||||
<p>
|
||||
A four deck variation of <a href="generalspatience.html">General's Patience</a>.
|
||||
<p>
|
||||
Like <a href="terrace.html">Terrace</a>, but with four decks and
|
||||
11 tableau piles. ALso, the foundations build up in suit.
|
12
html-src/rules/bigterrace.html
Normal file
12
html-src/rules/bigterrace.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<h1>Big Terrace</h1>
|
||||
<p>
|
||||
Terrace type. 4 decks. No redeal.
|
||||
|
||||
<h3>Object</h3>
|
||||
<p>
|
||||
Move all cards to the foundations.
|
||||
|
||||
<h3>Quick Description</h3>
|
||||
<p>
|
||||
Like <a href="terrace.html">Terrace</a>, but with four decks,
|
||||
11 tableau piles, and 19 cards starting in the reserve.
|
17
html-src/rules/empressofitaly.html
Normal file
17
html-src/rules/empressofitaly.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<h1>Empress of Italy</h1>
|
||||
<p>
|
||||
Terrace type. 4 decks. No redeal.
|
||||
|
||||
<h3>Object</h3>
|
||||
<p>
|
||||
Move all cards to the foundations.
|
||||
|
||||
<h3>Quick Description</h3>
|
||||
<p>
|
||||
A four deck variation of <a href="queenofitaly.html">Queen of Italy</a>.
|
||||
<p>
|
||||
Like <a href="terrace.html">Terrace</a>, but with four decks,
|
||||
11 tableau piles, and 19 cards starting in the reserve. ALso,
|
||||
empty cards in the tableau are not automatically filled
|
||||
from the waste pile or stock. Instead, any other card from the
|
||||
tableau or waste can be used to fill empty piles.
|
|
@ -10,7 +10,3 @@ Move all cards to the foundations.
|
|||
<p>
|
||||
Like <a href="terrace.html">Terrace</a>,
|
||||
but the foundations build up in suit.
|
||||
|
||||
<h3>Rules</h3>
|
||||
<p>
|
||||
<i>[To be written]</i>
|
||||
|
|
14
html-src/rules/queenofitaly.html
Normal file
14
html-src/rules/queenofitaly.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<h1>Queen of Italy</h1>
|
||||
<p>
|
||||
Terrace type. 2 decks. No redeal.
|
||||
|
||||
<h3>Object</h3>
|
||||
<p>
|
||||
Move all cards to the foundations.
|
||||
|
||||
<h3>Quick Description</h3>
|
||||
<p>
|
||||
Like <a href="terrace.html">Terrace</a>,
|
||||
but empty cards in the tableau are not automatically filled
|
||||
from the waste pile or stock. Instead, any other card from the
|
||||
tableau or waste can be used to fill empty piles.
|
|
@ -8,4 +8,30 @@ Move all cards to the foundations.
|
|||
|
||||
<h3>Rules</h3>
|
||||
<p>
|
||||
<i>[To be written]</i>
|
||||
At the start of the game, eleven cards are dealt into a reserve
|
||||
pile, and four cards are dealt into the first of nine tableau piles.
|
||||
One of these four cards must be played to the foundation. This card
|
||||
serves as the starting rank for building the foundation for the remainder
|
||||
of the game.
|
||||
<p>
|
||||
Once the first foundation card is chosen, deal five cards into the
|
||||
remaining five tableau piles. Cards may be moved between tableau
|
||||
piles one at a time, building down by alternating colors. Sequences
|
||||
can turn the corner, so aces can be played on kings. If a tableau pile
|
||||
is empty, fill the pile using the card from the top of the waste pile,
|
||||
or the stock if it's empty. If both are empty, any other card from the
|
||||
tableau may be moved there to fill the space.
|
||||
<p>
|
||||
Build up the foundations by alternating colors, starting with the
|
||||
first chosen rank. The top card of the reserve may be played to an
|
||||
appropriate foundation pile, but not the tableau.
|
||||
<p>
|
||||
Cards may be dealt one at a time from the stock, and the card from the
|
||||
waste may be played to an appropriate foundation or tableau pile. No
|
||||
redeal is allowed.
|
||||
|
||||
<h3>Strategy</h3>
|
||||
<p>
|
||||
Consider what cards are in the reserve when choosing your starting
|
||||
rank and choose carefully. The right or wrong card chosen at the
|
||||
very start can make or break the game.
|
||||
|
|
|
@ -325,7 +325,8 @@ class GI:
|
|||
("Bryan Stout", (655,)),
|
||||
("Bill Taylor", (349,)),
|
||||
("Thomas Warfield", (189, 264, 300, 320, 336, 337, 359,
|
||||
415, 427, 458, 495, 496, 497, 508,)),
|
||||
415, 427, 458, 495, 496, 497, 508,
|
||||
786, 787)),
|
||||
)
|
||||
|
||||
GAMES_BY_PYSOL_VERSION = (
|
||||
|
|
|
@ -243,6 +243,34 @@ class GeneralsPatience(Terrace):
|
|||
INITIAL_RESERVE_CARDS = 13
|
||||
|
||||
|
||||
# ************************************************************************
|
||||
# * Big Terrace
|
||||
# * Empress of Italy
|
||||
# * Admiral's Patience
|
||||
# ************************************************************************
|
||||
|
||||
class BigTerrace(Terrace):
|
||||
INITIAL_RESERVE_CARDS = 19
|
||||
|
||||
def createGame(self):
|
||||
Terrace.createGame(self, rows=11)
|
||||
|
||||
def startGame(self):
|
||||
Terrace.startGame(self, nrows=5)
|
||||
|
||||
|
||||
class EmpressOfItaly(BigTerrace):
|
||||
Foundation_Class = StackWrapper(Terrace_AC_Foundation, max_move=1)
|
||||
|
||||
def fillStack(self, stack):
|
||||
pass
|
||||
|
||||
|
||||
class AdmiralsPatience(BigTerrace):
|
||||
Foundation_Class = Terrace_SS_Foundation
|
||||
INITIAL_RESERVE_CARDS = 13
|
||||
|
||||
|
||||
# ************************************************************************
|
||||
# * Blondes and Brunettes
|
||||
# * Falling Star
|
||||
|
@ -467,3 +495,9 @@ registerGame(GameInfo(582, Wood, "Wood",
|
|||
GI.GT_TERRACE, 2, 0, GI.SL_BALANCED))
|
||||
registerGame(GameInfo(637, BastilleDay, "Bastille Day",
|
||||
GI.GT_TERRACE, 2, 0, GI.SL_BALANCED))
|
||||
registerGame(GameInfo(785, BigTerrace, "Big Terrace",
|
||||
GI.GT_TERRACE, 4, 0, GI.SL_MOSTLY_SKILL))
|
||||
registerGame(GameInfo(786, EmpressOfItaly, "Empress of Italy",
|
||||
GI.GT_TERRACE, 4, 0, GI.SL_MOSTLY_SKILL))
|
||||
registerGame(GameInfo(787, AdmiralsPatience, "Admiral's Patience",
|
||||
GI.GT_TERRACE, 4, 0, GI.SL_MOSTLY_SKILL))
|
||||
|
|
Loading…
Add table
Reference in a new issue