ttt.cgi is a Perl/CGI version of Tic Tac Toe. You can play this online or download the source and install it on your own Web server.