Question
PYTHON PROGRAMMING ASSIGNMENT GAME DESIGN 1) get the players information. Just the name/psedunym will do You will use a tuple to store the player's name
PYTHON PROGRAMMING ASSIGNMENT
GAME DESIGN
1) get the players information. Just the name/psedunym will do
You will use a tuple to store the player's name and score in a score list
Write a function that get the player's name as input
Builds and return a tuple
2) Off to designing a program menu that shows a list of games someone can play
write a function that displays a menu
EXAMPLE MENU
-Choose which game you want to play (press 1, 2 or 3) 1) My first dice game 2) My second dice game 3) My third dice game
Once the user has selected a game, the program should show the game rules and scoring scheme for example:
- My first dice game: 1) You will keep rolling a dice until you roll two numbers in a row that are same. 2) For example you roll 1, 3 ,4, 5, 5. You will then win the sum of the last two numbers you rolled (i.e., 10 in this example) and lose the sum of all the previous numbers (i.e., 1+3+4=8 in this example). 3) Your net score will be your winnings-loss (i.e., 10-8 = 2 in this example)
- My second dice game 1) You will keep rolling a dice until you roll three numbers in a row that are same. (following the criteria in first game)
- My third dice game 1) You will keep rolling a dice until you roll any two even numbers.
- Do you want to continue (Y/N)?
3) Now your program should then go into the playing mode. See the example output that you need to implement from your game (under task 4)
4) write a function called dice_roll that uses random number generation to produce numbers between 1 and 6?
You ask the player to hit Y/N if they want to play (or not)
If the player hits Y, the program should respond as follows:
- Rolling the dice please wait... You rolled 1 You rolled 3 You rolled 4 You rolled 5 You rolled 5 You rolled two 5s. You won 10 points, you lost 8 points. Your total is 2 points. Press Y to play again, N to exit this game
Suppose at this point the player says Y
Rolling the dice please wait... You rolled 2 You rolled 5 You rolled 3 You rolled 3 You rolled two 3s. You won 6 points, you lost 7 points. Your total is 1 points. (This is the previous 2 points and -1 point from this turn = total 1 point) Press Y to play again, N to exit this game
Suppose at this point the player decides to exit so we go back to the main menu
Choose which game you want to play (press 1, 2 or 3) 1) My first dice game 2) My second dice game 3) My third dice game
5) Deliverables:
- Complete and documented program that compiles correctly.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started