mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Corrected scaling issue in Octagon game.
This commit is contained in:
parent
716bea0043
commit
f4bed0f620
2 changed files with 22 additions and 2 deletions
20
html-src/rules/octagon.html
Normal file
20
html-src/rules/octagon.html
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<h1>Octagon</h1>
|
||||||
|
<p>
|
||||||
|
Forty Thieves type. 2 decks. 3 redeals.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Rules</h3>
|
||||||
|
<p>
|
||||||
|
Five cards are dealt into each of four tableau piles, located
|
||||||
|
in the corners of the play area. The eight aces are dealt to
|
||||||
|
eight foundations, each located on the edges of the play area.
|
||||||
|
The tableau piles are built down by same suit. Cards can be
|
||||||
|
dealt from the talon (placed in the middle of the play area)
|
||||||
|
one at a time, and can be moved to the tableau or foundations.
|
||||||
|
Three redeals are allowed.
|
||||||
|
<p>
|
||||||
|
Foundations are built up by same suit. The game is won when
|
||||||
|
all cards are moved to the foundations.
|
|
@ -745,8 +745,8 @@ class Octagon(Game):
|
||||||
|
|
||||||
l, s = Layout(self), self.s
|
l, s = Layout(self), self.s
|
||||||
|
|
||||||
w1 = l.XS+12*l.XOFFSET
|
w1 = max(l.XS + 12 * l.XOFFSET, l.XM + 2 * l.XS + l.XS // 2)
|
||||||
w, h = l.XM+2*l.XS+2*w1, l.YM+4*l.YS
|
w, h = l.XM + 2 * l.XS + 2 * w1, l.YM + 4 * l.YS
|
||||||
self.setSize(w, h)
|
self.setSize(w, h)
|
||||||
|
|
||||||
for x, y in ((l.XM, l.YM),
|
for x, y in ((l.XM, l.YM),
|
||||||
|
|
Loading…
Add table
Reference in a new issue