- Player 1 (user) inputs a number between 1 and 5.
- Player 2 (computer) can add either 1, 2, 3, 4, or 5 to Player 1's number.
- Player 1 can then add either 1, 2, 3, 4, or 5 to Player 2's number.
- The game continues until one of the players reaches 30.
The numbers that the computer chooses are generated pseudorandomly. The only time
that the number is not random is if the computer has a chance to win ((30 - sum) <= 5
).
- If the user inputs anything other than an integer, the program will crash. (Maybe I'll fix this later... or not)
The source code is licensed under the MIT License. See LICENSE file for more details.