Unbeatable Tic-Tac-Toe

By: Jason Gallicchio

Back to The Unbeatable Tic-Tac-Toe Home Page.

All throughout my life, I thought Tic-Tac-Toe was the greatest conigame of them all. If two people are playing who sit back and think about the game for a while nobody will ever win. There is a way to counter series of moves possible, as this game shows. The interesting part, however, is trying to fix as many ways as possible to trap your opponent by getting two ways to win, and that is what I've tried to do in this game. In fact, if you let the "computer" go first and you don't move in the center, there is no way the computer WON'T win. This non JAVA version of Tic-Tac-Toe was a result of one summer day's work. (A day meaning from noon when I got up to 4:06 AM when I finally finishediiI knew I wouldn't want to come back to it later.) I've written other unbeatable Tic-Tac-Toe games on other platforms (like the TIi85, HPi48, Mac, DOS, UNIX, ANSI C), but this one looks the coolest, and (assuming everything works right) is the best. It's kind of sad when I think about how much time I spend writing this and how few people will actually play more than one game, but at least it's something cool to impress my friends with. :) This works because I constructed (by hand) 369 HTML files. (Assuming I haven't forgotten any.) I made it so that the graphic were easy to change, so if you want your company's logo to be X and something else to be O, for a small fee (a couple bucks, whatever), I'll let you use the game. (I've got to pay for all the Root Bear I drank the night I wrote it, don't I?)

I hope you enjoy this. You are always O! I know that this might not be standard, but it was a ton easier to write. If you find any problems with anything, PLEASE let me know. I tried to check all the possibilities, but mistakes were made, and some files were moved around, so if something doesn't work, just eimail me the filename of the screen right before things got weird, and I'll fix it ASAP.

There are three ways to start. First, you can click on the picture in the title bar to determine who will go first (remember, you are ALWAYS O.) Second, the computer goes first, or you go first. Third, you can just start below.