Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (40 sloc) 1.519 kB
3d02dd5 @jmhobbs Hangman chapter.
jmhobbs authored
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE chapter [
3 <!ENTITY % allent SYSTEM "w3centities-f.ent">
4 %allent;
5 ]>
6 <chapter version="5.0" xmlns="http://docbook.org/ns/docbook"
7 xmlns:xlink="http://www.w3.org/1999/xlink"
8 xmlns:xi="http://www.w3.org/2001/XInclude"
9 xmlns:svg="http://www.w3.org/2000/svg"
10 xmlns:mml="http://www.w3.org/1998/Math/MathML"
11 xmlns:html="http://www.w3.org/1999/xhtml"
12 xmlns:db="http://docbook.org/ns/docbook">
13
14 <title>Hangman</title>
15 <sect1>
16 <title>The Game Plan</title>
17 <para>Coming Soon</para>
18 </sect1>
2b9a1b0 @napcs updated book chapters to include source rather than paste it in
authored
19 <sect1>
3d02dd5 @jmhobbs Hangman chapter.
jmhobbs authored
20 <title>Game Rules</title>
21 <para>Coming Soon</para>
2b9a1b0 @napcs updated book chapters to include source rather than paste it in
authored
22 </sect1>
23 <sect1>
24 <title>Hangman Words</title>
3d02dd5 @jmhobbs Hangman chapter.
jmhobbs authored
25 <para>
2b9a1b0 @napcs updated book chapters to include source rather than paste it in
authored
26 Your program needs a list of words to use. Let's save some into <filename>words.txt</filename>.
3d02dd5 @jmhobbs Hangman chapter.
jmhobbs authored
27 </para>
28 <para>
29 You can use our words, or add your own if you like.
30 </para>
b067743 @napcs added ruby setup, intro chapter stub, cleaned up some markup, and add…
authored
31 <programlisting language="text"><xi:include href="code/chapter_hangman/words.txt" parse="text"/></programlisting>
2b9a1b0 @napcs updated book chapters to include source rather than paste it in
authored
32 </sect1>
33 <sect1 id="code.py.hangman">
34 <title>Hangman Program Listing - Python</title>
b067743 @napcs added ruby setup, intro chapter stub, cleaned up some markup, and add…
authored
35 <programlisting language="python"><xi:include href="code/chapter_hangman/hangman.py" parse="text"/></programlisting>
36 <sect2>
37 <title>Running the game</title>
38 <para>Type <command>python hangman.rb</command> to run the game!</para>
39 </sect2>
40
2b9a1b0 @napcs updated book chapters to include source rather than paste it in
authored
41 </sect1>
bbd9421 @jmhobbs Merge branch 'master' of github.com:napcs/programming_for_kids
jmhobbs authored
42 </chapter>
Something went wrong with that request. Please try again.