Question: 1 . You should have 4 different files: die.py , player.py , check _ input.py , and main.py . 2 . Check all user input
You should have different files: die.py player.py checkinput.py and main.py
Check all user input using the getyesno function in the checkinput module.
Do not create any extra methods or add any extra parameters.
Please do not create any global variables or use the attributes globally. Only access the
attributes using the classs methods.
The attributes should have a leading underscore to denote that they shouldnt be accessed
outside of their classes.
Do not call any of the methods using the double underscores ex use not eq
Use docstrings to document the class, each of its methods, and the functions in the main
file. See the lecture notes and the Coding Standards reference document for examples.
Place your names, date, and a brief description of the program in a comment block at the
top of your main file. Place brief comments throughout your code.
Thoroughly test your program before submitting:
a Make sure that the user input is validated.
b Make sure that the dice values are sorted.
c Make sure that each of the win types are detected correctly.
d Make sure that the user is not awarded for both a pair and a threeofakind
simultaneously.
e Make sure that each of the win types awards the correct number of points.
f Make sure that the game continues and ends correctly.
g Make sure that the final score is displayed at the end.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
