The game of 8 is played by 2 players. The game starts with the initial number 8 (from here on refered to as the initial number). The first player will choose a number from 1 to 3 (from here on refered to as the chosen number). If the player inputs something outside of the 1 to 3 range it should be an error and the player must choose again. The initial number is subtracted by the chosen number. Then the next player's turn happens. The next player cannot choose the number that the last player chose. If the initial number goes to 0 on your turn, then you win. Otherwise if the number goes below 0, your opponent wins. The player should always see what choices are available to him when prompted to enter his choice. After the game is over, the user should be prompted whether they want to play again.
-
Notifications
You must be signed in to change notification settings - Fork 0
night-owl-official/The_Game_Of_Eight_ASCII
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published