Tic-Tac-Toe

Tic-Tac-Toe

3 devlogs
6h 1m
•  Ship certified
Created by Nathan

Play Tic-Tac-Toe against an AI

Timeline

Ship 1

0 payouts of shell 0 shells

Nathan

about 1 month ago

Nathan Covers 3 devlogs and 6h 1m

I fixed and optimized the code a bit, and then made the game look a bit better.

I made the AI smarter, added a console, added a new game button, and a congratulations title when you win.

Update attachment

I created the basics of the Game, allowing the player to take a turn, and then the AI, until a win condition is met. Then made the game restart after a win condition is met. Also made it so that the player can choose X or O.

I used an array of all possible wins in the game for checking win conditions. I also used an array as the game board, whose values are used to update the real game board. The AI currently just places their piece randomly, which will need to be updated so that the AI is actually good.