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

+ 1 new game

git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@222 39dd0a4e-7c14-0410-91b3-c4f2d318f732
This commit is contained in:
skomoroh 2008-03-20 14:48:22 +00:00
parent cb8dc365b5
commit 39364ef99d
2 changed files with 23 additions and 4 deletions

View file

@ -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,)),

View file

@ -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))