Ok, so I am writing a tic-tac-toe program. Whenever I choose a spot on the board (ex: 1) then it does it correctly... but , if I put a letter or multiple numbers then the program loops and breaks. Help? Here's my code that's not working when I put the incorrect variable in (btw: "spot" is an int):
well idk if this will help or not but i am having a hard time trying to find matching curly braces. On line 7 you open, but you don't close. Anyway, let me know if that solves anything.