4 ms·
Chess has to be one of the easier games to scale up, no?
by adam_arthur 4y ago
Chess has to be one of the easier games to scale up, no?
- Waterluvian 4y agoGood question. A web chess game is turn based with some basic logic to sync the clock. There are no secrets or complex state like many video games. Seems rather straightforward. The hard part is scaling up everything around it: - Stockfish real-time predictions - anti-cheat monitoring - the moderation tasks any social website needs
- noxvilleza 4y agoAnti-cheat monitoring can happen after the fact though, and Stockfish can run in-browser (there's a JS-compiled version of it).
- Waterluvian 4y agoOh cool. Does it run in the browser for This website? That would scale far better.
- qwertycrackers 4y agoI believe it does. At least, the better version of this site, lichess, runs the analyzer in the browser.
- fbdab103 4y agoA complete chess game should be a very limited amount of data. I am finding conflicting reports that a typical chess game is 40 to 70 moves. That being said, if any service suddenly saw a doubling of users within a month, plenty of sub-optimal architecture decisions can suddenly fall on their face which were otherwise adequate at the previous scale.
- bob1029 4y agoReplace chess with checkers and I think they'd still have ~90% of the same problems. This seems to be more about massive table/data growth than inherent complexity of the core business.
- schwoll 4y agoPVP probably yes. PvE? Not really. The algorithms for a competent engine are fairly CPU heavy.
- dtx1 4y agoand can trivially run client side