$ python design-scattergories.py Scattegories v0.1 add instructions here... which letter? a which list? (1-6): 3 ************************************************** 1. boys names....... 2. dog breeds....... 3. vegetables....... ************************************************** Category? 1 Entry? andy ************************************************** 1. boys names....... 2. dog breeds....... 3. vegetables....... ************************************************** Category? 99 Entry? andy ************************************************** 1. boys names....... 2. dog breeds....... 3. vegetables....... ************************************************** Category? pony Entry? pony ************************************************** TIME'S UP! Here's your final card: ************************************************** 1. boys names....... 2. dog breeds....... 3. vegetables....... **************************************************
Notice how the game "plays" through to the end, but doesn't really do anything. Your main() function should include the game logic that allows the user to enter things, until the game is over (timer runs out).
For the above, just to simplify things, I used a 3-category list (boys names, dogs, vegetables). In the final version, I would read in the real categories from files.
NOTE: the following is not an acceptable design for main()!
def main(): playGame()