Tic-Tac-Toe

The purpose of this project is to create a simple noughts and crosses game where people can play against a CPU that uses a machine learning model. Try it out below.

Instructions

The aim of the game is get three Os in a row either horizontally, vertically or diagonally before the CPU.

Play Game

It's your turn! You are noughts (O)

_ _ _
_ _ _
_ _ _

Select the position you would like to place your "O". Look at the grid on the right to help you understand which number correlates to which position.

0 1 2
3 4 5
6 7 8

Want to install a version that works on your own computer?

Check out the Java source code on GitHub here, or the Python source code on GitHub here.

GitHub logo LinkedIn logo