top of page

Tic-Tac-Toe

This is a game of Tic-Tac-Toe.

It uses a 3rd party rendering api to render shapes to the console. It allows the player to choose either 1-player or 2-player mode.

1 Player Mode: Allows the user to click a square, and it places an X or O. Then the other player is driven by a simplistically designed AI to drive its decisions.

2 Player Mode: Allows each player to alternate taking turns, on the same machine. Same functionality applies. The user clicks a square and it places an X or O, then it switches turns.

The game loop continues until there is a winner, or a draw. The Winner, if applicable, is highlighted with a line through it.

bottom of page