Tic Tac Toe

What it is

An online tic-tac-toe game. You log in with a nickname, see who else is in the lobby (players already in a game are marked), pick an opponent and play. The one who picks plays X and starts. When the game ends, both players can press Play Again for a rematch or go back to the lobby, and the other player is told either way.

You can play it in the browser, against the same server the Windows clients use.

How it's built

A C++ client with SFML and SFGUI, and a C++ server, both talking ENet (reliable UDP) through the packet layer of kazilib, my own C++ library.

Why I made it

The web version started as an experiment: make the game work in a browser entirely within tictactoe, porting SFML, SFGUI and ENet as needed, and then decide from the result whether to use the same approach in my other C++ projects.

Timeline

I wrote the game by hand in June 2016; in 2026 I moved it onto SFML 3.1 and kazilib and, with AI help, built the web client, the Linux server and the deployment.

Technologies

Demo Source code