This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
Program is unable to handle string input when choosing human or AI. #7
Labels
bug
Something isn't working
Describe the bug
When choosing between a human or AI player, if the user inputs one or more non-numerical characters the program becomes unresponsive.
To Reproduce
Expected behavior
The program should handle the unexpected input and either ask for the input again, or continue otherwise.
Actual behavior
The program becomes unresponsive and seems to be in a loop of clearing and printing on the console.
The text was updated successfully, but these errors were encountered: