Simple UNO clone

On Pranab’s site

DRAFT (needs work or removal)

Show/Hide contents
  1. Constraints and requirements
  2. Validation, or its lack thereof
  3. Project architecture
  4. TODO

A simple peer-to-peer UNO clone, which can be surprisingly difficult.

!!! SCREENSHOT !!!

Constraints and requirements🔗

I created this clone as a simple project to take a break from the tutorial/guide I was following. I had a few requirements/constraints:

A note on the quality of the implementation: I’m just learning to actually program, and my biggest program before this didn’t even reach a 100 lines.

Validation, or its lack thereof🔗

The project actually stalled for several weeks as I tried to figure out how to perform validation, before I arrived at having no validation, and including a simple undo system instead.

Most players don’t even think of putting the wrong card, especially when it comes to a computer game, and you can just undo any mistakes or attempts at cheating.

Project architecture🔗

The server I have is super simple. It listens on HTTP to serve the required files, and it passes on websocket messages to all clients. It also lists the local IP to connect to.

The root provides the login page.

The client is made out of several files. There is a simple login page that redirects you to an approriate URL

TODO🔗