Now it’s getting serious with TicTacToe (nought and crosses) You now have a board where the value of each of the 9 fields is stored in a separate variable. The size of the board is variable and the user can determine the size. The next step is to let the users (the players) make the moves.
You can use your own code or start from the example code provided with the last exercise.
Create a program that performs the following steps:
size
). There is a minimum and maximum value.You now have a lot of code twice in the file. That can be done more efficiently with loops. And that’s why we leave it at this first move. We’ll continue later.