As a simple exercise in multiplayer in PHP, I created a Tic-Tac-Toe setup. The top row selects the virtual table to sit down at, the second row destroys session data for that table, and the other links are self-descriptive. This exposes everything to the users, but I got too lazy to write in how to handle a user leaving the game. Instead, the users can take care of it themselves. Not that I’m expecting this to be a big hit–it’s mainly me warming up for a collaboration with my friends.
This version is far superior to my previous Tic-Tac-Toe game–but that’s not saying much. It’s not particularly sophisticated, but it works.