Code for Great Learning Assessment
HOW TO RUN
- Clone the project and run main.py file
- Enter Player no and max points which range for 0 to MAXINT
- enter r/R and then enter to roll the dice
Problem Statement -> Make a Dice rolling game with following functionalities
- Take inputs from user for no of players and max points
- Simulate Dice roll
- add dice roll value to points of player
- Skip the chance in case of double 1
- Give extra chance in case of 6
- Show ranks after every roll
- Once player points go over reuired points he completes the games
- Game is finished when every person get his points over the the required points
Assumptions:
- only positive integers would be entered by the users for input for no' of players and max points, even then validation has been applies
- dice roll is randomly simulated in python by generating a random number between 1 - 6
- Upper Bounds on No of players and max points is equal to max value that can be stored in int data type and min value is 1 for both
Issues: 1. Ranking system should have been made as a doubly linked list for faster display
Bonus:
- Tests are created for checking ranks