We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 041f9ab commit 41a30ddCopy full SHA for 41a30dd
3 files changed
html-src/rules/palace.html
@@ -0,0 +1,15 @@
1
+<h1>Palace</h1>
2
+<p>
3
+Beleaguered Castle type. 4 decks. No redeal.
4
+
5
+<h3>Object</h3>
6
7
+Move all cards to the foundations.
8
9
+<h3>Quick Description</h3>
10
11
+Like <a href="lightweight.html">Lightweight</a>,
12
+but with four decks, eighteen piles, and sequences of cards
13
+can only be moved if they're of the same suit.
14
15
+A variant of <a href="castlemount.html">Castle Mount</a>.
pysollib/gamedb.py
@@ -513,7 +513,7 @@ def _callback(gi, gt=game_type):
513
("Thomas Warfield", (189, 264, 300, 320, 336, 337, 359,
514
415, 427, 458, 495, 496, 497, 508,
515
800, 814, 820, 825, 889, 911, 926,
516
- 941, 966, 983)),
+ 941, 966, 983, 986)),
517
("Mary Whitmore Jones", (421, 624,)),
518
("Jan Wolter", (917, 939, 946, 963,)),
519
)
@@ -607,7 +607,7 @@ def _callback(gi, gt=game_type):
607
('fc-3.4', tuple(range(971, 981)) + tuple(range(5419, 5421)) +
608
tuple(range(16683, 16686)) + tuple(range(18005, 18007)) +
609
(44, 526, 5906, 22399,)),
610
- ('dev', tuple(range(981, 986)) + tuple(range(16686, 16687))),
+ ('dev', tuple(range(981, 987)) + tuple(range(16686, 16687))),
611
612
613
# deprecated - the correct way is to or a GI.GT_XXX flag
pysollib/games/beleagueredcastle.py
@@ -755,6 +755,7 @@ def fillStack(self, stack):
755
# ************************************************************************
756
# * Lightweight
757
# * Castle Mount
758
+# * Palace
759
760
761
class Lightweight(StreetsAndAlleys):
@@ -805,6 +806,17 @@ class CastleMount(Lightweight):
805
806
getQuickPlayScore = Game._getSpiderQuickPlayScore
807
808
809
+class Palace(CastleMount):
810
811
+ def createGame(self):
812
+ Lightweight.createGame(self, rows=18)
813
814
+ def startGame(self):
815
+ self.s.talon.dealRow(rows=self.s.foundations, frames=0)
816
+ self._startDealNumRows(10)
817
+ self.s.talon.dealRowAvail()
818
819
820
821
# * Selective Castle
822
@@ -961,3 +973,6 @@ class PenelopesWeb(StreetsAndAlleys):
961
973
registerGame(GameInfo(951, Morphy, "Morphy",
962
974
GI.GT_BELEAGUERED_CASTLE | GI.GT_OPEN, 1, 0,
963
975
GI.SL_SKILL))
976
+registerGame(GameInfo(986, Palace, "Palace",
977
+ GI.GT_BELEAGUERED_CASTLE | GI.GT_OPEN, 4, 0,
978
+ GI.SL_MOSTLY_SKILL))
0 commit comments