There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult. C.A.R. Hoare
Tic-tac-toe is a game for two players, who take turns marking the spaces in a grid. Tic Tac Toe is a game use to play by two players using 3x3 grid. The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal row wins the game.
This is a tic-tac-toe game You are playing against the computer! Enter 1-9 to indicate your move | | ----- | | ----- | | Your move Please enter your move(0-9): 6 | | ----- | | ----- X| | Computer move: 1 |O| ----- | | ----- X| | Your move Please enter your move(0-9): 7 |O| ----- | | ----- X|X| Computer move: 4 |O| ----- |O| ----- X|X| Your move Please enter your move(0-9): 8 |O| ----- |O| ----- X|X|X You won!