A simple real-time multiplayer Tic-Tac-Toe game with WebSocket-based communication.

How it works

1. Player creates or joins a room via a 4-letter code

2. Server hosts a state machine (lobby → game → game_over → lobby)

3. Moves are sent as JSON over WebSocket (player_action with position)

4. Server validates each move against the engine; invalid moves return an error

5. On disconnect, opponent is shown as offline and can continue playing if it's their turn

Leave a comment

Log in with itch.io to leave a comment.