Naughts and Crosses - in Perl

Introduction

naughts.pl is a simple demonstration of how easy it is to write basic games using Perl and cookies.

The game in question is Naughts and Crosses known to others as Tic Tac Toe. The AI gameplay for the computer is not really intelligent at all and just relies on psuedo-random numbers.

Play Online

You can play Naughts and Crosses online by clicking here - note, this will open in a new window, and computer goes first!

Download

You can download the Perl source here. Enjoy!

Valid CSS!

Valid HTML 4.01!