O'Reilly Introduction to Python/Section 18: Difference between revisions

imported>Jesstess
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 7:
We looked briefly at a Scrabble cheater in this video. To run it yourself, download these files to the same directory:
 
* [http://web.mit.edu/jesstess/www/OReillyPython/Section18/scrabble_cheater.py scrabble_cheater.py] (the main program we run)
* [http://web.mit.edu/jesstess/www/OReillyPython/Section18/scrabble.py scrabble.py] (the helper module)
* [http://web.mit.edu/jesstess/www/OReillyPython/Section18/sowpods.txt sowpods.txt] (the wordlist)
Line 31:
 
<pre>
$ python scrabblescrabble_cheater.py ZAEFIEE
2 AE
2 AI
Line 92:
</li>
</ul>
 
 
===Step 2: get the rack===
Line 163 ⟶ 162:
 
<pre>
$ python scrabblescrabble_cheater.py AAA
2 AA
</pre>
 
<pre>
$ python scrabblescrabble_cheater.py ZZAAEEI
2 AA
2 AE
Anonymous user