Chicago Python Workshop/Chicago Python Workshop 1/Saturday projects/Wordplay: Difference between revisions
Content added Content deleted
imported>Aisha |
imported>Aisha |
||
Line 4: | Line 4: | ||
# Go over <tt>words1.py</tt> through <tt>words6.py</tt> as a class |
# Go over <tt>words1.py</tt> through <tt>words6.py</tt> as a class |
||
# Demo <tt>scrabble_cheater.py</tt> |
# Demo <tt>scrabble_cheater.py</tt> |
||
# Create fake_scrabble.py where you use scrabble_cheater as a module to return all possible words that could be placed against a letter. |
|||
# Explore other interesting word properties (by creating word7.py) or play with <tt>scrabble_cheater.py</tt> (we've had people start Words With Friends games and cheat using the script) |
|||
## For this project, your script should run like this: |
|||
<code>python fake_scrabble.py <RACK> <BOARD_LETTERS></code> |
|||
## You can assume that there is plenty of space between letters in BOARD_LETTERS on the board. |
|||
## You should also modify scrabble_cheater.py to return what it prints out, and put the surrounding code under a function definition. |
|||
===Congratulations!=== |
===Congratulations!=== |
||