#websockets
3 posts
Three Tunisian card games, one engine
After Chkobba, I wanted Rami and Belote online too. Instead of writing the online part twice more, I took it out of Chkobba and gave each new game only its own rules.
Two people, one code box, no conflicts
Interview Room lets an interviewer and a candidate type in the same code at the same time. This is how both copies stay identical, and how the hidden tests stay hidden.
Disconnected is not the same as gone
In my online games, locking your phone lost you the match. The fix was to stop treating a dropped connection as a player leaving.