Sorry! Online Multiplayer Game

Info

An online multiplayer version of the Sorry! board game

Technologies

PHP, HTML, MySQL

Date

March - April 2021

This game was developed as a team project as part of CSE 477 – Web Application Development at Michigan State University Spring 2021. This multiplayer game supports up to four players. The first version supported local multiplayer (all players must be together in person to play from a single computer) Later we extended it to support online multiplayer (all players use their own computers from anywhere in the world).

First, players register an account. A verification email is sent containing a link to set their password. Next the player enters the lobby screen. From here they can join an open lobby or start a new one. After waiting for at least two players to join, the game can begin. The players take turns moving their pieces around the board. Clicking on a pawn will show all its potential moves. The first player to land all four of their pawns in their home square wins. This follows typical Sorry! game rules, which can be found here.

User account details and game state are stored in a MySQL database. The game state is serialized into a standardized JSON format which the current player’s client pushes its changes on, prompting all other clients through a webhook to pull the new game state.

The source code for the game is available on GitHub, linked above. I currently do not have a live version hosted due to hosting and cost limitations but may do so in the future.