PT

semáforo

educational game with online multiplayer

source code ↗
Python Pygame WebSockets asyncio

Context

Board game (3x4) where two players (human or BOT) place green, yellow and red pieces, inspired by traffic-light colours, trying to be the first to line up three pieces of the same colour; green pieces can be swapped for yellow ones and vice versa. Built in two phases for the Programming Lab course: the first asked for a console version, the second already expected a graphical interface. In the second phase, the work went further than required, adding online multiplayer through a WebSocket (asyncio) server, with matchmaking either by game code or from a list of open games, on top of the Pygame interface with Stardew Valley-inspired art and bilingual (PT/EN) text.

Technical challenges

Screenshots