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

Added Siegecraft game.

This commit is contained in:
Joe R 2021-10-22 18:05:30 -04:00
parent f0df3b0f58
commit 6cbf173723
3 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,12 @@
<h1>Siegecraft</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="beleagueredcastle.html">Beleaguered Castle</a>,
but with one free cell.

View file

@ -479,7 +479,7 @@ class GI:
('fc-2.12', tuple(range(774, 811)) + (16681,) +
tuple(range(22217, 22219))),
('fc-2.14', tuple(range(811, 827))),
('fc-2.16', tuple(range(827, 831)))
('fc-2.16', tuple(range(827, 832)))
)
# deprecated - the correct way is to or a GI.GT_XXX flag

View file

@ -424,10 +424,19 @@ class Chessboard(Fortress):
# ************************************************************************
# * Siegecraft
# * Stronghold
# * Fastness
# ************************************************************************
class Siegecraft(BeleagueredCastle):
Hint_Class = FreeCellType_Hint
Solver_Class = FreeCellSolverWrapper(sbb='rank')
def createGame(self):
BeleagueredCastle.createGame(self, reserves=1)
class Stronghold(StreetsAndAlleys):
Hint_Class = FreeCellType_Hint
Solver_Class = FreeCellSolverWrapper(sbb='rank')
@ -919,3 +928,6 @@ registerGame(GameInfo(650, CastlesEnd, "Castles End",
registerGame(GameInfo(665, PenelopesWeb, "Penelope's Web",
GI.GT_BELEAGUERED_CASTLE | GI.GT_OPEN, 1, 0,
GI.SL_MOSTLY_SKILL))
registerGame(GameInfo(831, Siegecraft, "Siegecraft",
GI.GT_BELEAGUERED_CASTLE | GI.GT_OPEN | GI.GT_ORIGINAL,
1, 0, GI.SL_MOSTLY_SKILL))