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

Fixed up some sections of the documentation.

This commit is contained in:
Joe R 2021-09-04 10:07:08 -04:00
parent 6eead026cd
commit 36a0bfbc14
9 changed files with 40 additions and 32 deletions

View file

@ -1,4 +1,5 @@
<h1>General Ganjifa Card Rules</h1> <h1>General Ganjifa Card Rules</h1>
<p>
Ganjifa are playing cards from India and other nations in the region. Ganjifa are playing cards from India and other nations in the region.
Usually round, some rectangular decks have been produced. The most significant Usually round, some rectangular decks have been produced. The most significant
difference between Ganjifa and other types of cards is that Ganjifa cards have difference between Ganjifa and other types of cards is that Ganjifa cards have

View file

@ -50,7 +50,7 @@ files = [
('glossary.html', 'PySol - Glossary'), ('glossary.html', 'PySol - Glossary'),
('hanafuda.html', 'PySol - Rules for General Flower Card Rules'), ('hanafuda.html', 'PySol - Rules for General Flower Card Rules'),
('hexadeck.html', 'PySol - General Hex A Deck Card Rules'), ('hexadeck.html', 'PySol - General Hex A Deck Card Rules'),
('howtoplay.html', 'How to play PySol'), ('howtoplay.html', 'How to Use PySol'),
('index.html', 'PySol - a Solitaire Game Collection'), ('index.html', 'PySol - a Solitaire Game Collection'),
('install.html', 'PySol - Installation'), ('install.html', 'PySol - Installation'),
('intro.html', 'PySol - Introduction'), ('intro.html', 'PySol - Introduction'),
@ -61,9 +61,10 @@ files = [
] ]
rules_files = [ rules_files = [
# ('hanoipuzzle.html', ), ('hanoipuzzle.html', 'PySol - Rules for Hanoi Puzzle'),
('mahjongg.html', 'PySol - Rules for Mahjongg'), ('mahjongg.html', 'PySol - Rules for Mahjongg'),
('matrix.html', 'PySol - Rules for Matrix'), ('matrix.html', 'PySol - Rules for Matrix'),
('notshisensho.html', 'PySol - Rules for Not Shisen-Sho'),
('pegged.html', 'PySol - Rules for Pegged'), ('pegged.html', 'PySol - Rules for Pegged'),
('shisensho.html', 'PySol - Rules for Shisen-Sho'), ('shisensho.html', 'PySol - Rules for Shisen-Sho'),
('spider.html', 'PySol - Rules for Spider'), ('spider.html', 'PySol - Rules for Spider'),
@ -121,6 +122,8 @@ rules_footer = '''
<p> <p>
<a href="../index.html">Back to the index</a> <a href="../index.html">Back to the index</a>
<br>
<a href="../rules.html">Back to individual game rules</a>
</body> </body>
</html>''' </html>'''
@ -191,9 +194,6 @@ def gen_rules_html():
if not rules_fn: if not rules_fn:
rules_fn = _get_game_rules_filename(gi.name) rules_fn = _get_game_rules_filename(gi.name)
if rules_fn in files_list:
continue
if rules_fn in rules_ls: if rules_fn in rules_ls:
rules_dir = 'rules' rules_dir = 'rules'
elif rules_fn in wikipedia_ls: elif rules_fn in wikipedia_ls:
@ -204,20 +204,18 @@ def gen_rules_html():
continue continue
# print '>>>', rules_fn # print '>>>', rules_fn
if rules_fn not in files_list:
title = 'PySol - Rules for ' + gi.name
s = ''
if gi.si.game_type == GI.GT_HANAFUDA:
s = '<a href="../hanafuda.html">General Flower Card rules</a>'
elif gi.si.game_type == GI.GT_DASHAVATARA_GANJIFA or \
gi.si.game_type == GI.GT_MUGHAL_GANJIFA:
s = '<a href="../ganjifa.html">About Ganjifa</a>'
elif gi.si.game_type == GI.GT_HEXADECK:
s = '<a href="../hexadeck.html">General Hex A Deck rules</a>'
title = 'PySol - Rules for ' + gi.name rules_list.append((rules_dir, rules_fn, title, s))
s = ''
if gi.si.game_type == GI.GT_HANAFUDA:
s = '<a href="../hanafuda.html">General Flower Card rules</a>'
elif gi.si.game_type == GI.GT_DASHAVATARA_GANJIFA:
s = '<a href="../ganjifa.html">About Ganjifa</a>'
elif gi.si.game_type == GI.GT_HEXADECK:
s = '<a href="../hexadeck.html">General Hex A Deck rules</a>'
elif gi.si.game_type == GI.GT_MUGHAL_GANJIFA:
s = '<a href="../ganjifa.html">About Ganjifa</a>'
# print '***', gi.name, '***'
rules_list.append((rules_dir, rules_fn, title, s))
files_list.append(rules_fn) files_list.append(rules_fn)
# rules_list.append((rules_fn, gi.name)) # rules_list.append((rules_fn, gi.name))
print('<li><a href="rules/%s">%s</a>' print('<li><a href="rules/%s">%s</a>'

View file

@ -36,3 +36,14 @@ from the Foundations. Of course, you can also use the Undo key &lt;Z&gt;.
<p> <p>
If you're confused by all this, just watch a demo game :-) If you're confused by all this, just watch a demo game :-)
<h2>Other Types of Decks</h2>
<p>
A few of the games in PySol use a different type of deck. For more info about
some of the other decks PySol games can use, see the following:
<ul>
<li><a href="ganjifa.html">Ganjifa</a></li>
<li><a href="hanafuda.html">Hanafuda</a></li>
<li><a href="hexadeck.html">Hex A Deck</a></li>
</ul>

View file

@ -5,10 +5,8 @@ There are some characteristics common to all the games played with Hanafuda
cards. They are all played with one or more of the Asian flower card decks. cards. They are all played with one or more of the Asian flower card decks.
This deck is common in a number of Pacific regions including Hawaii. There are This deck is common in a number of Pacific regions including Hawaii. There are
twelve suits of four cards each. The suits are associated with the twelve twelve suits of four cards each. The suits are associated with the twelve
months of the year. For a good explanation of what the suits are, months of the year.
try <a href="http://hanafubuki.org/">Graham Leonard's Hanafuda and Kabufuda </p>
site</a>.
<p> <p>
Most of the flower card solitaire games are played like western deck games Most of the flower card solitaire games are played like western deck games
with minor changes. See the <a href="general_rules.html">General Rules</a> for with minor changes. See the <a href="general_rules.html">General Rules</a> for
@ -17,5 +15,5 @@ move all the cards from the tableau to the foundations. Probably the most
difficult part of learning to play with hanafuda cards is learning which cards difficult part of learning to play with hanafuda cards is learning which cards
belong in which suits and what their ranking is. The ranking of the suits is belong in which suits and what their ranking is. The ranking of the suits is
sometimes as important as the ranking of the cards in the suit. Try keeping sometimes as important as the ranking of the cards in the suit. Try keeping
this hanafuda help image displayed where you can refer to it as you play. this hanafuda help image displayed where you can refer to it as you play.</p>
<img alt="" src="images/hanahelp.gif"> <img alt="" src="images/hanahelp.gif">

View file

@ -1,4 +1,4 @@
<h1>How to play PySol</h1> <h1>How to use PySol</h1>
<h2>Mouse Usage</h2> <h2>Mouse Usage</h2>
<p> <p>

View file

@ -1,9 +1,9 @@
<h1>PySol - a Solitaire Game Collection</h1> <h1>PySol - a Solitaire Game Collection</h1>
<ul>
<p> <a href="intro.html">Introduction</a> <li> <a href="intro.html">Introduction</a>
<p> <a href="install.html">Installation</a> <!-- <p> <a href="install.html">Installation</a>-->
<p> <a href="howtoplay.html">How to play</a> <li> <a href="howtoplay.html">How to play</a>
</ul>
<h2>Rules</h2> <h2>Rules</h2>
<ul> <ul>
<li> <a href="glossary.html">Glossary</a> <li> <a href="glossary.html">Glossary</a>

View file

@ -22,7 +22,7 @@ the same suit, descending from King to Ace.
<h3>Notes</h3> <h3>Notes</h3>
<p> <p>
Scorpion Towers is a combination of the games Scorpion Towers is a combination of the games
<a href="seahaventowers.html">Seahaven Towers</a> and <a href="seahaventowers.html">Seahaven Towers</a> and
<a href="scorpion.html">Scorpion</a>. It was invented by Thomas <a href="scorpion.html">Scorpion</a>. It was invented by Thomas
Warfield. Warfield.

View file

@ -1102,7 +1102,7 @@ class HelpMenuDialog(LMenuDialog):
command=self.make_help_command(self.menubar.mHelp))) command=self.make_help_command(self.menubar.mHelp)))
tv.add_node( tv.add_node(
LTreeNode( LTreeNode(
text=_('How to play'), text=_('How to use PySol'),
command=self.make_help_command(self.menubar.mHelpHowToPlay))) command=self.make_help_command(self.menubar.mHelpHowToPlay)))
tv.add_node( tv.add_node(
LTreeNode( LTreeNode(

View file

@ -677,7 +677,7 @@ class PysolMenubarTkCommon:
label=n_("&Contents"), label=n_("&Contents"),
command=self.mHelp, accelerator=m+"F1") command=self.mHelp, accelerator=m+"F1")
menu.add_command( menu.add_command(
label=n_("&How to play"), label=n_("&How to use PySol"),
command=self.mHelpHowToPlay) command=self.mHelpHowToPlay)
menu.add_command( menu.add_command(
label=n_("&Rules for this game"), label=n_("&Rules for this game"),