mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
+ 1 new game
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@222 efabe8c0-fbe8-4139-b769-b5e6d273206e
This commit is contained in:
parent
27ccd32f7d
commit
d2765100a3
2 changed files with 23 additions and 4 deletions
|
@ -279,6 +279,7 @@ class GI:
|
||||||
("Paul Alfille", (8,)),
|
("Paul Alfille", (8,)),
|
||||||
("C.L. Baker", (45,)),
|
("C.L. Baker", (45,)),
|
||||||
("David Bernazzani", (314,)),
|
("David Bernazzani", (314,)),
|
||||||
|
("Gordon Bower", (763,)),
|
||||||
("Art Cabral", (9,)),
|
("Art Cabral", (9,)),
|
||||||
("Charles Jewell", (220, 309,)),
|
("Charles Jewell", (220, 309,)),
|
||||||
("Robert Harbin", (381,)),
|
("Robert Harbin", (381,)),
|
||||||
|
|
|
@ -482,18 +482,24 @@ class AllInARow(BlackHole):
|
||||||
|
|
||||||
# /***********************************************************************
|
# /***********************************************************************
|
||||||
# // Robert
|
# // Robert
|
||||||
|
# // Wasatch
|
||||||
# ************************************************************************/
|
# ************************************************************************/
|
||||||
|
|
||||||
class Robert(Game):
|
class Robert(Game):
|
||||||
|
|
||||||
def createGame(self):
|
def createGame(self, max_rounds=3, num_deal=1):
|
||||||
l, s = Layout(self), self.s
|
l, s = Layout(self), self.s
|
||||||
self.setSize(l.XM+4*l.XS, l.YM+2*l.YS)
|
self.setSize(l.XM+4*l.XS, l.YM+2*l.YS)
|
||||||
x, y = l.XM+3*l.XS/2, l.YM
|
x, y = l.XM+3*l.XS/2, l.YM
|
||||||
s.foundations.append(BlackHole_Foundation(x, y, self, ANY_SUIT, dir=0, mod=13, max_move=0, max_cards=52))
|
stack = BlackHole_Foundation(x, y, self, ANY_SUIT,
|
||||||
|
dir=0, mod=13, max_move=0, max_cards=52)
|
||||||
|
s.foundations.append(stack)
|
||||||
|
l.createText(stack, 'ne')
|
||||||
x, y = l.XM+l.XS, l.YM+l.YS
|
x, y = l.XM+l.XS, l.YM+l.YS
|
||||||
s.talon = WasteTalonStack(x, y, self, max_rounds=3)
|
s.talon = WasteTalonStack(x, y, self,
|
||||||
|
max_rounds=max_rounds, num_deal=num_deal)
|
||||||
l.createText(s.talon, 'nw')
|
l.createText(s.talon, 'nw')
|
||||||
|
if max_rounds > 0:
|
||||||
l.createRoundText(self.s.talon, 'se', dx=l.XS)
|
l.createRoundText(self.s.talon, 'se', dx=l.XS)
|
||||||
x += l.XS
|
x += l.XS
|
||||||
s.waste = WasteStack(x, y, self)
|
s.waste = WasteStack(x, y, self)
|
||||||
|
@ -508,6 +514,16 @@ class Robert(Game):
|
||||||
self.s.talon.dealCards()
|
self.s.talon.dealCards()
|
||||||
|
|
||||||
|
|
||||||
|
class Wasatch(Robert):
|
||||||
|
|
||||||
|
def createGame(self):
|
||||||
|
Robert.createGame(self, max_rounds=UNLIMITED_REDEALS, num_deal=3)
|
||||||
|
|
||||||
|
def startGame(self):
|
||||||
|
self.startDealSample()
|
||||||
|
self.s.talon.dealCards()
|
||||||
|
|
||||||
|
|
||||||
# /***********************************************************************
|
# /***********************************************************************
|
||||||
# // Diamond Mine
|
# // Diamond Mine
|
||||||
# ************************************************************************/
|
# ************************************************************************/
|
||||||
|
@ -1105,4 +1121,6 @@ registerGame(GameInfo(749, Flake, "Flake",
|
||||||
registerGame(GameInfo(750, Flake2Decks, "Flake (2 decks)",
|
registerGame(GameInfo(750, Flake2Decks, "Flake (2 decks)",
|
||||||
GI.GT_GOLF | GI.GT_OPEN | GI.GT_ORIGINAL,
|
GI.GT_GOLF | GI.GT_OPEN | GI.GT_ORIGINAL,
|
||||||
2, 0, GI.SL_MOSTLY_SKILL))
|
2, 0, GI.SL_MOSTLY_SKILL))
|
||||||
|
registerGame(GameInfo(763, Wasatch, "Wasatch",
|
||||||
|
GI.GT_1DECK_TYPE, 1, UNLIMITED_REDEALS, GI.SL_MOSTLY_LUCK))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue