Browse files

Added oxt file explanation

  • Loading branch information...
1 parent 68adf5c commit b2bfcf2fb16353c2f5ddd39769955e315f238845 @fredley committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.html
View
2 index.html
@@ -38,7 +38,7 @@ <h2 id="project_tagline">Optimal Hangman-Playing Python Script</h2>
<h3>How to use pyngman</h3>
<ol>
-<li><p><strong>Grab a dictionary</strong> - you'll need a dictionary to play. Tested with <a href="http://en-gb.pyxidium.co.uk/dictionary/OOo.php">Pyxidium</a>'s <a href="http://en-gb.pyxidium.co.uk/dictionary/OOo.php">British English dictionary</a>. A <a href="http://wiki.services.openoffice.org/wiki/Dictionaries">full list of dictionaries</a> is available on the <a href="http://wiki.services.openoffice.org/wiki/Dictionaries">Open Office Wiki</a>, note that non-English characters have not been tested.</p></li>
+<li><p><strong>Grab a dictionary</strong> - you'll need a dictionary to play. Tested with <a href="http://en-gb.pyxidium.co.uk/dictionary/OOo.php">Pyxidium</a>'s <a href="http://en-gb.pyxidium.co.uk/dictionary/OOo.php">British English dictionary</a>. A <a href="http://wiki.services.openoffice.org/wiki/Dictionaries">full list of dictionaries</a> is available on the <a href="http://wiki.services.openoffice.org/wiki/Dictionaries">Open Office Wiki</a>. These files have an <code>.oxt</code> extension, but that are actually <code>.zip</code> files, and will work correctly with pyngman. Note that non-English characters have not been tested.</p></li>
<li><p><strong>Initialise pyngman</strong> - pyngman needs to process the dictionary to generate word lists, so you need to initialise it before you can do anything. From the command line, run:<br><code>$ python pyngman.py -init en_GB.zip</code><br>
If you want to include proper nouns (any words containing capital letters), use <code>-p</code>:<br><code>$ python pyngman.py -init -p en_GB.zip</code> </p></li>
<li><p><strong>Calculate Optimal guesses</strong> - we're ready to start playing hangman! Pass pyngman a state, and a list of letters you've tried and it'll tell you what your optimal next guess is:</p></li>

0 comments on commit b2bfcf2

Please sign in to comment.