diff --git a/html-src/rules/blockten.html b/html-src/rules/blockten.html index 99877c8d..c3102a57 100644 --- a/html-src/rules/blockten.html +++ b/html-src/rules/blockten.html @@ -4,7 +4,8 @@ Pairing game type. 1 deck. No redeal.

Object

-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.

Rules

diff --git a/html-src/rules/simpletens.html b/html-src/rules/simpletens.html new file mode 100644 index 00000000..76fd8aa5 --- /dev/null +++ b/html-src/rules/simpletens.html @@ -0,0 +1,17 @@ +

Simple Tens

+

+Pairing game type. 1 stripped deck. No redeal. + +

Object

+

+Discard all pairs of cards that add up to ten in rank. + +

Quick Description

+

+Just like Block Ten, +but only played with the cards from ace to ten. +Very easy. + +

Notes

+

+Autodrop is disabled for this game. diff --git a/pysollib/gamedb.py b/pysollib/gamedb.py index 48e9e87a..93a55e5e 100644 --- a/pysollib/gamedb.py +++ b/pysollib/gamedb.py @@ -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 = [] diff --git a/pysollib/games/montecarlo.py b/pysollib/games/montecarlo.py index f875a328..be619e98 100644 --- a/pysollib/games/montecarlo.py +++ b/pysollib/games/montecarlo.py @@ -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",)))