mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Added Simple Tens game.
This commit is contained in:
parent
2a1628e6cb
commit
146dbeec86
4 changed files with 33 additions and 4 deletions
|
@ -4,7 +4,8 @@ Pairing game type. 1 deck. No redeal.
|
|||
|
||||
<h3>Object</h3>
|
||||
<p>
|
||||
Discard cards except the four tens.
|
||||
Discard all pairs of cards that add up to ten in rank, and pairs of
|
||||
face cards, leaving only the four tens.
|
||||
|
||||
<h3>Rules</h3>
|
||||
<p>
|
||||
|
|
17
html-src/rules/simpletens.html
Normal file
17
html-src/rules/simpletens.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<h1>Simple Tens</h1>
|
||||
<p>
|
||||
Pairing game type. 1 stripped deck. No redeal.
|
||||
|
||||
<h3>Object</h3>
|
||||
<p>
|
||||
Discard all pairs of cards that add up to ten in rank.
|
||||
|
||||
<h3>Quick Description</h3>
|
||||
<p>
|
||||
Just like <a href="blockten.html">Block Ten</a>,
|
||||
but only played with the cards from ace to ten.
|
||||
Very easy.
|
||||
|
||||
<h3>Notes</h3>
|
||||
<p>
|
||||
<i>Autodrop</i> is disabled for this game.
|
|
@ -424,7 +424,8 @@ class GI:
|
|||
364, 372, 376, 383, 384, 385, 386, 390, 391, 393, 398, 405,
|
||||
415, 416, 425, 451, 453, 461, 464, 466, 467, 476, 480, 484,
|
||||
511, 512, 513, 516, 561, 610, 625, 629, 631, 638, 641, 647,
|
||||
650, 655, 678, 734, 751, 784, 825, 829, 834, 837, 844, 901,
|
||||
650, 655, 678, 734, 751, 784, 825, 829, 834, 837, 844, 862,
|
||||
901,
|
||||
)),
|
||||
|
||||
# xpat2 1.06 (we have 14 out of 16 games)
|
||||
|
@ -545,12 +546,12 @@ 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, 862)))
|
||||
('dev', tuple(range(855, 863)))
|
||||
)
|
||||
|
||||
# deprecated - the correct way is to or a GI.GT_XXX flag
|
||||
# in the registerGame() call
|
||||
_CHILDREN_GAMES = [16, 33, 55, 90, 91, 96, 97, 176, 328, 329, 903, ]
|
||||
_CHILDREN_GAMES = [16, 33, 55, 90, 91, 96, 97, 176, 328, 329, 862, 903, ]
|
||||
|
||||
_OPEN_GAMES = []
|
||||
|
||||
|
|
|
@ -339,6 +339,7 @@ class SimplePairs(MonteCarlo):
|
|||
|
||||
# ************************************************************************
|
||||
# * Block Ten
|
||||
# * Simple Tens
|
||||
# ************************************************************************
|
||||
|
||||
class BlockTen_RowStack(MonteCarlo_RowStack):
|
||||
|
@ -361,6 +362,11 @@ class BlockTen(SimplePairs):
|
|||
return len(self.s.foundations[0].cards) == 48
|
||||
|
||||
|
||||
class SimpleTens(BlockTen):
|
||||
def isGameWon(self):
|
||||
return len(self.s.foundations[0].cards) == 36
|
||||
|
||||
|
||||
# ************************************************************************
|
||||
# * Neighbour
|
||||
# ************************************************************************
|
||||
|
@ -1011,3 +1017,7 @@ registerGame(GameInfo(810, Quatorze, "Quatorze",
|
|||
GI.GT_PAIRING_TYPE, 1, 0, GI.SL_MOSTLY_LUCK))
|
||||
registerGame(GameInfo(829, BlockTen, "Block Ten",
|
||||
GI.GT_PAIRING_TYPE, 1, 0, GI.SL_LUCK))
|
||||
registerGame(GameInfo(862, SimpleTens, "Simple Tens",
|
||||
GI.GT_PAIRING_TYPE | GI.GT_STRIPPED, 1, 0, GI.SL_LUCK,
|
||||
ranks=(0, 1, 2, 3, 4, 5, 6, 7, 8),
|
||||
altnames=("Add Up Tens",)))
|
||||
|
|
Loading…
Add table
Reference in a new issue