| |
|
|
| |
|
|
| |
| |
|
-------------
| 1 | 2 | 3 |
-------------
| 4 | 5 | 6 |
-------------
| 7 | 8 | 9 |
-------------
A move is only valid if the square is not occupied and if the typed
number is larger than 0 and smaller than 10. In case of an invalid
move, generate an error and prompt for a new move. Make sure that your
program does not accept nonnumeric input.
int check_for_winner()
that returns either the winner or no winner.