Static Tic Tac Toe

Static Tic Tac Toe is a uniquely implemented version of the classic Tic Tac Toe game that runs entirely on static HTML with no JavaScript. Each possible game state is pre-generated as a separate HTML file, creating a web-based game that works through simple hyperlinks.

Requirements:

  • Any web browser (no JavaScript required)

Below are some key features.

  • Play Tic Tac Toe entirely through static HTML files
  • No JavaScript or other client-side programming
  • Pre-generated game states for all possible moves
  • Hyperlink-based gameplay mechanics
  • Demonstrates the concept of a "solved game" in a creative way
  • Extremely lightweight and works on any browser
  • Open source with customizable templates

Go to to start playing. Click on any empty square to place your mark (X goes first). Each click simply navigates to another HTML file representing the new game state!

Getting Started

When you first visit the site, you'll see an empty Tic Tac Toe board where player X goes first. Click on any square to place an X.

Taking Turns

After each move, the game switches to the next player automatically. The board shows the current state with all placed X's and O's.

Winning the Game

Get three of your marks in a horizontal, vertical, or diagonal row to win. The game will display a winning message when this happens.

Starting a New Game

After a game ends or at any point during play, you can refresh the page or click a "New Game" link to start over.

Behind the Scenes

Every possible game state has its own HTML file. When you click a square, you're actually following a link to a new HTML file that represents the updated board. This project contains thousands of pre-generated HTML files!

Try to understand the naming convention of the URLs as you play—they encode the current state of the board! The format is: player prefix (x- or o-) followed by 9 characters representing the board state (_ for empty squares, x for X moves, o for O moves).

GitHub repository

Privacy settings

We save your language and privacy choices on this device. The optional Discord chat loads its player from Widgetbot, may use Cloudflare security checks, and connects to Discord. It loads only when you choose to open the chat.

Essential storage

Language and privacy choices needed to remember your preferences. Always active.

Discord chat

Load the chat player from Widgetbot, allow its Cloudflare security checks, and connect to Discord. The player loads only when you choose to open it. These services may receive technical connection data, such as your IP address.

Accessibility settings

Adjust motion, cursor, and contrast preferences for this website.

These preferences are stored locally in this browser and are not sent to us.

Level AAA conformance, W3C Web Content Accessibility Guidelines 2.2

WCAG 2.2 Level AAA assessment

Assessed 17 November 2026 for all public pages and site-controlled content with accessibility preferences enabled. The optional third-party Discord interface is excluded; its fallback remains in scope. Technologies: HTML, CSS, JavaScript, and SVG.

Reviewed by the site owner; W3C does not verify this claim.

Reduce motion

Stops content reveals, menu animations, and decorative motion. System preference is used until you choose an override.

Increase contrast

Strengthens text, surface, border, and focus colors. System preference is used until you choose an override.

Custom cursor

Use the standard system cursor and pointer behavior. Touch-only devices use the standard cursor automatically.

Larger targets

Increase the size of interactive controls and links to make them easier to select.

Reading presentation

Use a narrower text column, more paragraph spacing, and left-aligned text. Choose a light or dark color scheme.