mkeeter / pont

An online board game in Rust and WebAssembly
https://mattkeeter.com/projects/pont
Apache License 2.0
260 stars 20 forks source link

Errors in move validation? #1

Closed ganthern closed 4 years ago

ganthern commented 4 years ago

I'm not sure if I simply misunderstood the rules, but this move:

pont

seems to break the "contribute to one connected row or column" rule.

mkeeter commented 4 years ago

You discovered the secret, forbidden technique: the validation layer only checks that moves share a row/column and that the resulting board is valid; it does not check whether the placed pieces are actually all connected.

This is fixed in the commit above, and I'll deploy a server change shortly.