mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Moved talon in Flake to eliminate overlap, and other cleanup.
This commit is contained in:
parent
976e6ea756
commit
69bbec8e70
1 changed files with 7 additions and 7 deletions
|
@ -1326,8 +1326,8 @@ class Flake(Game):
|
||||||
|
|
||||||
# set window
|
# set window
|
||||||
self.setSize(
|
self.setSize(
|
||||||
layout.XM + rows*layout.XS,
|
layout.XM + rows * layout.XS,
|
||||||
layout.YM + 2*layout.YS + playcards*layout.XOFFSET)
|
layout.YM + 2 * layout.YS + playcards * layout.XOFFSET)
|
||||||
|
|
||||||
# create stacks
|
# create stacks
|
||||||
x, y, = layout.XM, layout.YM+layout.YS
|
x, y, = layout.XM, layout.YM+layout.YS
|
||||||
|
@ -1335,14 +1335,14 @@ class Flake(Game):
|
||||||
s.rows.append(UD_RK_RowStack(x, y, self, mod=13))
|
s.rows.append(UD_RK_RowStack(x, y, self, mod=13))
|
||||||
x += layout.XS
|
x += layout.XS
|
||||||
|
|
||||||
x, y = layout.XM + (rows-1)*layout.XS//2, layout.YM
|
x, y = layout.XM + (rows - 1) * layout.XS // 2, layout.YM
|
||||||
stack = BlackHole_Foundation(x, y, self, max_move=0, suit=ANY_SUIT,
|
stack = BlackHole_Foundation(x, y, self, max_move=0, suit=ANY_SUIT,
|
||||||
base_rank=ANY_RANK, dir=0, mod=13,
|
base_rank=ANY_RANK, dir=0, mod=13,
|
||||||
max_cards=52*self.gameinfo.decks)
|
max_cards=52 * self.gameinfo.decks)
|
||||||
s.foundations.append(stack)
|
s.foundations.append(stack)
|
||||||
layout.createText(stack, 'ne')
|
layout.createText(stack, 'ne')
|
||||||
|
|
||||||
x, y = layout.XM, self.height-layout.YS
|
x, y = layout.XM, layout.YM
|
||||||
s.talon = InitialDealTalonStack(x, y, self)
|
s.talon = InitialDealTalonStack(x, y, self)
|
||||||
|
|
||||||
# define stack-groups
|
# define stack-groups
|
||||||
|
@ -1378,10 +1378,10 @@ class Beacon(Game):
|
||||||
playcards = 12
|
playcards = 12
|
||||||
self.setSize(
|
self.setSize(
|
||||||
layout.XM+rows*layout.XS,
|
layout.XM+rows*layout.XS,
|
||||||
layout.YM+3*layout.YS+playcards*layout.YOFFSET)
|
layout.YM + 3 * layout.YS + playcards * layout.YOFFSET)
|
||||||
|
|
||||||
# create stacks
|
# create stacks
|
||||||
x, y = layout.XM + (rows-1)*layout.XS//2, layout.YM
|
x, y = layout.XM + (rows - 1) * layout.XS // 2, layout.YM
|
||||||
stack = RK_FoundationStack(x, y, self, base_rank=ANY_RANK,
|
stack = RK_FoundationStack(x, y, self, base_rank=ANY_RANK,
|
||||||
max_cards=52, mod=13)
|
max_cards=52, mod=13)
|
||||||
s.foundations.append(stack)
|
s.foundations.append(stack)
|
||||||
|
|
Loading…
Add table
Reference in a new issue