mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Minor cleanup of Aglet game.
This commit is contained in:
parent
ae40b654a1
commit
4160d75b6a
2 changed files with 7 additions and 6 deletions
|
@ -16,4 +16,4 @@ the reserve can be moved to the foundations.
|
||||||
<p>
|
<p>
|
||||||
The foundation piles are built up by rank, regardless of
|
The foundation piles are built up by rank, regardless of
|
||||||
suit. The game is won if all cards are moved to the
|
suit. The game is won if all cards are moved to the
|
||||||
reserve.
|
foundations.
|
||||||
|
|
|
@ -995,9 +995,10 @@ class Aglet(Game):
|
||||||
decks = self.gameinfo.decks
|
decks = self.gameinfo.decks
|
||||||
l, s = Layout(self), self.s
|
l, s = Layout(self), self.s
|
||||||
self.setSize(l.XM + (reserves + 0.5+rows) * l.XS,
|
self.setSize(l.XM + (reserves + 0.5+rows) * l.XS,
|
||||||
l.YM+max(2*l.YS+7*l.YOFFSET, l.YS+playcards*l.YOFFSET))
|
l.YM + max(2 * l.YS + 7 * l.YOFFSET,
|
||||||
|
l.YS + playcards * l.YOFFSET))
|
||||||
|
|
||||||
x, y = self.width-l.XS, self.height-l.YS
|
x, y = l.XM, self.height-l.YS
|
||||||
s.talon = InitialDealTalonStack(x, y, self)
|
s.talon = InitialDealTalonStack(x, y, self)
|
||||||
|
|
||||||
x, y = l.XM, l.YM
|
x, y = l.XM, l.YM
|
||||||
|
|
Loading…
Add table
Reference in a new issue