The last time you worked on Tictactoe was in the sub-module Methods3. We are almost ready to finish the program. In this exercise we prepare the last phase, which is the phase where the program also determines whether someone has won. To make this possible, a number of things must be changed:
The program now alternately sets X’s and O’s at the position entered by the user. If the user enters 0 the program will end. If the user enters a number that the program cannot act on, a notification is given and the same player can try again.