mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fixed display cutoff in Senate game.
This commit is contained in:
parent
396ca108b9
commit
b2d07def7e
3 changed files with 41 additions and 2 deletions
26
html-src/rules/senate.html
Normal file
26
html-src/rules/senate.html
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<h1>Senate</h1>
|
||||||
|
<p>
|
||||||
|
Raglan type. 2 decks. No redeals.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Rules</h3>
|
||||||
|
<p>
|
||||||
|
A card is dealt to each of four tableau piles,
|
||||||
|
and eight reserve piles. The aces are all dealt
|
||||||
|
to the foundations. The tableau piles are built
|
||||||
|
down by same suit, and any card or sequence of
|
||||||
|
cards can be moved between tableau piles. Any card
|
||||||
|
or sequence can be moved to an empty tableau pile.
|
||||||
|
You cannot build on the reserves, and cards can only
|
||||||
|
be moved from the reserves to the tableau or
|
||||||
|
foundation one at a time.
|
||||||
|
<p>
|
||||||
|
When there are no moves left, you can deal a single
|
||||||
|
card from the deck to each of the reserve piles.
|
||||||
|
<p>
|
||||||
|
The foundations are built up by suit from ace to
|
||||||
|
king. The game is won when all cards are moved
|
||||||
|
to the foundations.
|
12
html-src/rules/senateplus.html
Normal file
12
html-src/rules/senateplus.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<h1>Senate+</h1>
|
||||||
|
<p>
|
||||||
|
Raglan type. 2 decks. No redeal.
|
||||||
|
|
||||||
|
<h3>Object</h3>
|
||||||
|
<p>
|
||||||
|
Move all cards to the foundations.
|
||||||
|
|
||||||
|
<h3>Quick Description</h3>
|
||||||
|
<p>
|
||||||
|
Just like <a href="senate.html">Senate</a>, but with five
|
||||||
|
tableau piles.
|
|
@ -745,8 +745,9 @@ class Senate(Jane):
|
||||||
playcards = 10
|
playcards = 10
|
||||||
|
|
||||||
lay, s = Layout(self), self.s
|
lay, s = Layout(self), self.s
|
||||||
self.setSize(lay.XM+(rows+7)*lay.XS,
|
self.setSize(lay.XM + (rows + 7) * lay.XS,
|
||||||
lay.YM+2*(lay.YS+playcards*lay.YOFFSET))
|
max(lay.YM + 2 * (lay.YS + playcards * lay.YOFFSET),
|
||||||
|
lay.YS * 5))
|
||||||
|
|
||||||
x, y = lay.XM, lay.YM
|
x, y = lay.XM, lay.YM
|
||||||
for i in range(rows):
|
for i in range(rows):
|
||||||
|
|
Loading…
Add table
Reference in a new issue