Scattergories Example 3

This example shows another version of the scattergories program (with slightly different formatting). It also shows the user entering input for the same category more than once.


$ python scattergories.py

############################################################
Scattegories v0.1
-----------------
Pick a letter and a category list.
You then have 30 seconds to write down an entry for each
category that starts with that letter. Good luck!
############################################################


which letter? s
which list? (1-6): 1


          You have 30 seconds left.

************************************************************
            1. Boy's Name.......
                 2. River.......
                3. Animal.......
  4. Things that are cold.......
               5. Insects.......
              6. TV Shows.......
      7. Things that grow.......
                8. Fruits.......
 9. Things that are black.......
      10. School Subjects.......
         11. Movie Titles.......
  12. Musical Instruments.......
************************************************************
  category number? (1-12): 1
            1. Boy's Name: sam

          You have 26 seconds left.

************************************************************
            1. Boy's Name.......sam
                 2. River.......
                3. Animal.......
  4. Things that are cold.......
               5. Insects.......
              6. TV Shows.......
      7. Things that grow.......
                8. Fruits.......
 9. Things that are black.......
      10. School Subjects.......
         11. Movie Titles.......
  12. Musical Instruments.......
************************************************************
  category number? (1-12): 2
                 2. River: seine

          You have 19 seconds left.

************************************************************
            1. Boy's Name.......sam
                 2. River.......seine
                3. Animal.......
  4. Things that are cold.......
               5. Insects.......
              6. TV Shows.......
      7. Things that grow.......
                8. Fruits.......
 9. Things that are black.......
      10. School Subjects.......
         11. Movie Titles.......
  12. Musical Instruments.......
************************************************************
  category number? (1-12): 1
            1. Boy's Name: santiago

          You have 14 seconds left.

************************************************************
            1. Boy's Name.......santiago
                 2. River.......seine
                3. Animal.......
  4. Things that are cold.......
               5. Insects.......
              6. TV Shows.......
      7. Things that grow.......
                8. Fruits.......
 9. Things that are black.......
      10. School Subjects.......
         11. Movie Titles.......
  12. Musical Instruments.......
************************************************************
  category number? (1-12): 1
            1. Boy's Name: saul

          You have 10 seconds left.

************************************************************
            1. Boy's Name.......saul
                 2. River.......seine
                3. Animal.......
  4. Things that are cold.......
               5. Insects.......
              6. TV Shows.......
      7. Things that grow.......
                8. Fruits.......
 9. Things that are black.......
      10. School Subjects.......
         11. Movie Titles.......
  12. Musical Instruments.......
************************************************************
  category number? (1-12): 10
      10. School Subjects: spanish

          You have 5 seconds left.

************************************************************
            1. Boy's Name.......saul
                 2. River.......seine
                3. Animal.......
  4. Things that are cold.......
               5. Insects.......
              6. TV Shows.......
      7. Things that grow.......
                8. Fruits.......
 9. Things that are black.......
      10. School Subjects.......spanish
         11. Movie Titles.......
  12. Musical Instruments.......
************************************************************
  category number? (1-12): 10
      10. School Subjects: social studies

          You have 2 seconds left.

************************************************************
            1. Boy's Name.......saul
                 2. River.......seine
                3. Animal.......
  4. Things that are cold.......
               5. Insects.......
              6. TV Shows.......
      7. Things that grow.......
                8. Fruits.......
 9. Things that are black.......
      10. School Subjects.......social studies
         11. Movie Titles.......
  12. Musical Instruments.......
************************************************************
  category number? (1-12): 12
  12. Musical Instruments: saxophone

----- TIMES UP!!!!! -----
        
Final card:
************************************************************
            1. Boy's Name.......saul
                 2. River.......seine
                3. Animal.......
  4. Things that are cold.......
               5. Insects.......
              6. TV Shows.......
      7. Things that grow.......
                8. Fruits.......
 9. Things that are black.......
      10. School Subjects.......social studies
         11. Movie Titles.......
  12. Musical Instruments.......saxophone
************************************************************
Return to Lab 07
Example 1
Example 2