Question: 1 . You should have 4 different files: die.py , player.py , check _ input.py , and main.py . 2 . Check all user input

1. You should have 4 different files: die.py, player.py, check_input.py, and main.py.
2. Check all user input using the get_yes_no function in the check_input module.
3. Do not create any extra methods or add any extra parameters.
4. Please do not create any global variables or use the attributes globally. Only access the
attributes using the classs methods.
5. The attributes should have a leading underscore to denote that they shouldnt be accessed
outside of their classes.
6. Do not call any of the methods using the double underscores (ex. use == not __eq__).
7. 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.
8. 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.
9. 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 three-of-a-kind
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!