mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fixed incorrect rules for Amazons game.
This commit is contained in:
parent
90f79aa68b
commit
80a2208f50
2 changed files with 34 additions and 2 deletions
31
html-src/rules/amazons.html
Normal file
31
html-src/rules/amazons.html
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<h1>Amazons</h1>
|
||||||
|
<p>
|
||||||
|
Numerica type. 1 stripped deck. Unlimited redeals.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Rules</h3>
|
||||||
|
<p>
|
||||||
|
Amazons is played with only the Aces and Sevens through
|
||||||
|
queens of each suit. The remaining cards are removed.
|
||||||
|
<p>
|
||||||
|
A card is dealt to each of four tableau piles. No building
|
||||||
|
on the tableau is allowed - cards can only be moved from the
|
||||||
|
tableau to foundations. The foundations are built up by rank,
|
||||||
|
regardless of suit, with the sevens played on the aces. With
|
||||||
|
the exception of the aces and queens, a card can only be moved
|
||||||
|
to the foundation from the tableau pile directly below it.
|
||||||
|
<p>
|
||||||
|
Once the talon is empty, you can pick up the tableau piles and
|
||||||
|
combine them to form a new talon. You can do this as many
|
||||||
|
times as necessary.
|
||||||
|
<p>
|
||||||
|
Once a foundation is filled, cards are no longer dealt to the
|
||||||
|
tableau pile directly below it. The game is won if all the
|
||||||
|
cards are moved to the foundations.
|
||||||
|
|
||||||
|
<h3>Notes</h3>
|
||||||
|
<p>
|
||||||
|
<i>Autodrop</i> is disabled for this game.
|
|
@ -507,7 +507,7 @@ class Amazons_Foundation(AbstractFoundationStack):
|
||||||
return False
|
return False
|
||||||
if from_stack not in self.game.s.rows:
|
if from_stack not in self.game.s.rows:
|
||||||
return False
|
return False
|
||||||
if cards[0].rank == ACE:
|
if cards[0].rank == ACE and not self.cards:
|
||||||
return True
|
return True
|
||||||
if not self.cards:
|
if not self.cards:
|
||||||
return False
|
return False
|
||||||
|
@ -525,7 +525,8 @@ class Amazons_Foundation(AbstractFoundationStack):
|
||||||
|
|
||||||
class Amazons(AuldLangSyne):
|
class Amazons(AuldLangSyne):
|
||||||
Talon_Class = StackWrapper(Amazons_Talon, max_rounds=-1)
|
Talon_Class = StackWrapper(Amazons_Talon, max_rounds=-1)
|
||||||
Foundation_Class = StackWrapper(Amazons_Foundation, max_cards=7)
|
Foundation_Class = StackWrapper(Amazons_Foundation, max_cards=7,
|
||||||
|
suit=ANY_SUIT)
|
||||||
|
|
||||||
def _shuffleHook(self, cards):
|
def _shuffleHook(self, cards):
|
||||||
return cards
|
return cards
|
||||||
|
|
Loading…
Add table
Reference in a new issue