www. Aidan Reilly .net

Noughts and Crosses

Here is a javascript implementation of Noughts and Crosses, also known as TicTacToe. It is possible to beat the computer, but quite difficult (mostly becasue noughts and crosses usually ends in a draw, rather than because the algorithm is especially good). I wrote this page in an attempt to learn javascript. It’s quite a simple game, and I’m sure you know the rules!

This page uses fixed-size code to make it look sensible on normal-sized computer screens. If you’re looking at this page on a phone or similar you may wish to change the scale of the board - do this using the box below:

© Aidan Reilly 2014