1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Added Lasker game.

This commit is contained in:
Joe R 2022-12-30 16:18:12 -05:00
parent a438dc8861
commit 808b1d7d0a
3 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,12 @@
<h1>Lasker</h1>
<p>
Beleaguered Castle type. 1 deck. No redeal.
<h3>Object</h3>
<p>
Move all cards to the foundations.
<h3>Quick Description</h3>
<p>
Like <a href="chessboard.html">Chessboard</a>, but sequences of
cards in the tableau can be moved together.

View file

@ -549,7 +549,7 @@ 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, 881)))
('dev', tuple(range(855, 882)))
)
# deprecated - the correct way is to or a GI.GT_XXX flag

View file

@ -44,7 +44,8 @@ from pysollib.stack import \
UD_SS_RowStack, \
WasteStack, \
WasteTalonStack
from pysollib.util import ACE, ANY_RANK, KING, NO_RANK, QUEEN, RANKS
from pysollib.util import ACE, ANY_RANK, KING, NO_RANK, QUEEN, RANKS,\
UNLIMITED_ACCEPTS, UNLIMITED_MOVES
class BeleagueredCastleType_Hint(CautiousDefaultHint):
@ -374,6 +375,7 @@ class CastlesEnd(Bastion):
# ************************************************************************
# * Chessboard
# * Lasker
# ************************************************************************
class Chessboard_Foundation(SS_FoundationStack):
@ -423,6 +425,12 @@ class Chessboard(Fortress):
self.texts.info.config(text=t)
class Lasker(Chessboard):
RowStack_Class = StackWrapper(Chessboard_RowStack, mod=13,
max_move=UNLIMITED_MOVES,
max_accept=UNLIMITED_ACCEPTS)
# ************************************************************************
# * Siegecraft
# * Stronghold
@ -932,3 +940,6 @@ registerGame(GameInfo(665, PenelopesWeb, "Penelope's Web",
registerGame(GameInfo(831, Siegecraft, "Siegecraft",
GI.GT_BELEAGUERED_CASTLE | GI.GT_OPEN, 1, 0,
GI.SL_MOSTLY_SKILL))
registerGame(GameInfo(881, Lasker, "Lasker",
GI.GT_BELEAGUERED_CASTLE | GI.GT_OPEN, 1, 0,
GI.SL_SKILL))