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

Removed unnecessary logic forcing Four Seasons and House in the Wood to use Wikipedia rules.

This commit is contained in:
Joe R 2022-03-17 19:27:30 -04:00
parent 2a2d1c59db
commit a05044e40e
4 changed files with 33 additions and 9 deletions

View file

@ -74,10 +74,6 @@ rules_files = [
('freecell.html', 'PySol - Rules for FreeCell'),
('lightsout.html', 'PySol - Rules for Lights Out'),
]
wikipedia_files = [
('houseinthewood.html', 'PySol - Rules for House in the Woods'),
('fourseasons.html', 'PySol - Rules for Four Seasons'),
]
def _fmt(fmt, params):
@ -181,9 +177,6 @@ def gen_rules_html():
for fn, tt in rules_files:
rules_list.append(('rules', fn, tt, ''))
files_list.append(fn)
for fn, tt in wikipedia_files:
rules_list.append(('wikipedia', fn, tt, ''))
files_list.append(fn)
altnames = []
# open file of list of all rules

View file

@ -0,0 +1,19 @@
<h1>House in the Wood</h1>
<p>
Fan game type. 2 decks. No redeal.
<h3>Object</h3>
<p>
Move all cards to the foundations.
<h3>Rules</h3>
<p>
Three cards are dealt to each of 34 tableau piles,
with a 35th having the remaining two cards. Tableau
piles are built up or down by same suit, and only single
cards can be moved between piles. Empty tableau piles
cannot be filled.
<p>
The foundations are built up by same suit from ace to
king. The game is won if all cards are moved to the
foundations.

View file

@ -0,0 +1,13 @@
<h1>House on the Hill</h1>
<p>
Fan game type. 2 decks. No redeal.
<h3>Object</h3>
<p>
Move all cards to the foundations.
<h3>Quick Description</h3>
<p>
Like <a href="houseinthewood.html">House in the Wood</a>,
but while one foundation of each suit is built up from ace to
king, the other is built down from king to ace.

View file

@ -1066,8 +1066,7 @@ registerGame(GameInfo(340, IntelligencePlus, "Intelligence +",
registerGame(GameInfo(268, HouseInTheWood, "House in the Wood",
GI.GT_FAN_TYPE | GI.GT_OPEN, 2, 0, GI.SL_MOSTLY_SKILL))
registerGame(GameInfo(317, HouseOnTheHill, "House on the Hill",
GI.GT_FAN_TYPE | GI.GT_OPEN, 2, 0, GI.SL_MOSTLY_SKILL,
rules_filename='houseinthewood.html'))
GI.GT_FAN_TYPE | GI.GT_OPEN, 2, 0, GI.SL_MOSTLY_SKILL))
registerGame(GameInfo(320, CloverLeaf, "Clover Leaf",
GI.GT_FAN_TYPE | GI.GT_OPEN, 1, 0, GI.SL_MOSTLY_SKILL))
registerGame(GameInfo(347, FreeFan, "Free Fan",