3 ms·
As someone who has implemented online multiplayer tbs games before, this is exactly the kind of thing you would use at the backend. However, you also need the
by nurettin 7y ago
As someone who has implemented online multiplayer tbs games before, this is exactly the kind of thing you would use at the backend.
However, you also need the same code running on the frontend in order to do validations before sending moves to the backend. That optimization helps distribute some server load and gets you immediate feedback. In Java's case, I'd use some java to js or java to kotlin to js transpilation.
- Pmop 7y agoIs performing chess validations that heavy, if you're serving ~10,000 games? (just asking for a friend)
- nurettin 7y agoTo do all validations and move suggesions on the server side causes data traffic for no reason. Not just cpu time. It is senseless.
- nurettin 7y agoAs a clarification, of course you will validate all moves on the server side and make sure client side state is consistent, but what I meant by validation is when you have to give every feedback from the server back to the client you will quickly find yourself in a ddos situation with so many players online.