Gang of Four Online Game

React Python Socket-IO

Gang of Four is a 4-players card game where the goal is to get rid of all your cards before your opponnents by playing poker hands.

I learned that the official game server had shut down a few years ago, so I decided to create my own online version to keep playing with my brother and some friends.

Architecture

I wanted to learn the React framework, and I thought this project would be a good fit. For the backend, I used python to code the game logic. I wanted to keep things simple for me with a language I know well as I knew the real challenge would be on the front-ent part. Finally, I used socket-io to handle the two-sided communications.

Looking back, using TypeScript on the backend would have been a lot easier to keep the same objects between the front and the back. Also, If I hat to do it all again, I would definitly use a state manager like redux, as React only tends to be a mess in a project like that!