CS21 Lab7: Extensions

These are NOT part of the regular assignment. Only attempt these after you have successfully completed the full regular assignment.

  1. Implement a multi-player game for 3 players. If you implement this version, implement your solution as a separate file (multiplayer.py) from the single player game. And submit both the single and multiplayer solutions using handin21.

    the rules for the multi-player game:

    1. At start-up prompt user to enter the number of players (one, two, or three) and each player's name
    2. Your game will play 3 different rounds. Each round consists of a different randomly read puzzle (line) from the input file.
    3. When playing each round
      1. Players take turns being the current player
      2. Print out current player's name and his/her winnings for the next guess and prompt him/her to enter a menu choice (spin, guess, ...) and handle the current player's choice
      3. The current player's turn ends only when one of the following happens:
        • s/he guesses a letter that is not in the puzzle
        • s/he spins BANKRUPT (the player loses all his/her earnings but play on this puzzle continues with the next player getting his/her turn)
        • s/he incorrectly guesses the solution to the puzzle
        Otherwise, the current player gets to keep selecting menu options
      4. To win a round, the current player must correctly guess the puzzle. When a round is won, only the winner's total winnings are updated with the amount earned during this round.
      5. At the end of each round print out the winning player's name and the amount won in addition to the solution to the puzzle.
    4. At the end of all games print out each player's name and his/her total winnings
  2. Use the graphics library to add a graphic interface to your wheeloffortune game that (1) displays spinning the wheel in some form and (2) shows the result of the wheel spin, and (3) the parts of the puzzle guessed in some form.

    If you implement this, turn in two solutions, one with the lab07 wheel of fortune program, the other (graphicwheel.py) with your graphic interface solution.

Submit
These are due with your lab 7 solution. They should be in your labs/07 subdirectory and can be submitted using handin21.