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

Added Double Putt game.

This commit is contained in:
Joe R 2023-02-11 14:26:52 -05:00
parent 55c00ddda3
commit 4a9257dee3
3 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,15 @@
<h1>Double Putt</h1>
<p>
Golf type. 2 decks. No redeal.
<h3>Object</h3>
<p>
Move all cards to the waste stack.
<h3>Quick Description</h3>
<p>
Like <a href="golf.html">Golf</a>,
but with two decks and nine dealt columns,
and sequences do wrap around,
i.e. Twos and Kings may be placed on Aces
and Queens and Aces may be placed on Kings.

View file

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

View file

@ -241,6 +241,14 @@ class RelaxedGolf(Golf):
shallHighlightMatch = Game._shallHighlightMatch_RKW
class DoublePutt(DoubleGolf):
Solver_Class = BlackHoleSolverWrapper(preset='golf', base_rank=0,
wrap_ranks=True)
Waste_Class = StackWrapper(Golf_Waste, mod=13)
shallHighlightMatch = Game._shallHighlightMatch_RKW
# ************************************************************************
# * Elevator - Relaxed Golf in a Pyramid layout
# ************************************************************************
@ -1476,3 +1484,5 @@ registerGame(GameInfo(880, Carcassonne, "Carcassonne",
GI.GT_NAPOLEON | GI.GT_OPEN, 2, 0, GI.SL_BALANCED))
registerGame(GameInfo(891, AllInARowII, "All in a Row II",
GI.GT_GOLF | GI.GT_OPEN, 1, 0, GI.SL_MOSTLY_SKILL))
registerGame(GameInfo(892, DoublePutt, "Double Putt",
GI.GT_GOLF, 2, 0, GI.SL_BALANCED))