News for hackers. Stuff that matters.
Re:A multiplayer board game in Rust and WebAssembly by reitzensteinm on Saturday June 27, 2020 @07:14AM (#23661058)
I run it on both. If you need to provide some UI context, being able to reach in to the state and query it is a life saver.

Imagine Advance Wars. Their unit movement is very subtle.

You can choose the path the units travel, which can turn in to a forced action if you stumble onto an ambush unit. When you reach the end it tells you the outcome of your battle before you confirm you want to engage in it.

Doing logic only on the server and sending down a list of possible moves is going to get pretty heavy. Querying for each square of movement is going to be a latency nightmare.

Edit: actually, I think the movement ambush is from a clone. Although the arrow movement from the original is still complicated. That doesn't weaken the argument: imagine getting half way in to dev and realizing you can't add that feature with your architecture.

Re:A multiplayer board game in Rust and WebAssembly by filleduchaos on Saturday June 27, 2020 @07:36AM (#23661152)
I haven't played Advance Wars, so that definitely affects my answer, but by looking at it and reading a couple of reviews it seems rather like chess (and was directly compared to it) - and chess is something I've implemented like I describe with no problem. It's surprising how far you can get by putting some thought into the data interchange format between your client and server.
Re:A multiplayer board game in Rust and WebAssembly by reitzensteinm on Saturday June 27, 2020 @07:48AM (#23661200)
Chess with potentially thousands of moves per unit.
Re:A multiplayer board game in Rust and WebAssembly by jbperry on Saturday June 27, 2020 @04:46PM (#23664551)
On any given turn there really isn't that many possible moves. https://chess.stackexchange.com/questions/4490/maximum-possi...
Re:A multiplayer board game in Rust and WebAssembly by peterstensmyr on Sunday June 28, 2020 @01:31AM (#23666930)
They are describing Advance Wars, not chess.