4 ms·
I used this standard a long time ago to make a simple server -> client reactive state for a card game by combining it with Vue's reactive objects to get somethi
by udbhavs 2y ago
I used this standard a long time ago to make a simple server -> client reactive state for a card game by combining it with Vue's reactive objects to get something like a poor man's CRDTs. This is a rough diagram of what it looked like: [1]. Although there was a reducer step on the server to hide private state for the other player, it's still probably wildly impractical for actual games.
[1] https://user-images.githubusercontent.com/50021387/184360079-d55741b4-8566-4ad2-8f70-3dc8c041fd46.png https://user-images.githubusercontent.com/50021387/184360079...