Chicago Python Workshop/Chicago Python Workshop 1/Saturday projects/Wordplay: Difference between revisions
Content added Content deleted
imported>Aisha |
imported>Aisha |
||
Line 5:
# 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.
## 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.
|
Revision as of 17:34, 18 August 2012
Project
- Review relevant material from lecture (e.g. for loops)
- Go over words1.py through words6.py as a class
- Demo scrabble_cheater.py
- Create fake_scrabble.py where you use scrabble_cheater as a module to return all possible words that could be placed against a letter.
- For this project, your script should run like this:
python fake_scrabble.py <RACK> <BOARD_LETTERS>
- 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.
- For this project, your script should run like this:
Congratulations!
You've read, modified, and added code to a software project that makes it easy to get useful information from words. Keep practicing!