Anonymous user
O'Reilly Introduction to Python/Section 18: Difference between revisions
O'Reilly Introduction to Python/Section 18 (view source)
Revision as of 19:35, 6 April 2014
, 10 years agono edit summary
imported>Jesstess (Created page with "right|300px == Project == It is time for our pièce de résistance! We are going to write a Scrabble cheater from scratch in Python. == Goals for this...") |
imported>Jesstess No edit summary |
||
Line 1:
[[File:Scrabble.jpg|right|300px]]
__NOTOC__
== Goal #1: review the Scrabble cheater ==
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] (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)
and then run <tt>scrabble_cheater.py</tt> with a rack, for example:
<pre>python scrabble_cheater.py ABCDEFG</pre>
Below, we also break down writing this Scrabble cheater into steps, as an example of how programmers tackle larger programming problems from scratch and so you can implement the cheater yourself if you want!
== Goals for this project ==
Line 180 ⟶ 192:
[[File:Fireworks.png|150px]]
[[File:Balloons.png|150px]]
[[O'Reilly Introduction to Python|« Back to the section index]]
|