I like the attribute-based approach to wasm bindings in rust, it keeps it clean and to one file, and refreshing how you just have a plain HTML file and just instantiate the module with
import init, { Checkers } from "./pkg/checkers.js";
I wish the Rust web frameworks were this simple. I mean, they're not insane, but they're just really complex due to all of the use cases they support. Dioxus needs a "lite" mode.
Hello, original author here. I was delightedly surprised to see this game got attention. I believe I referenced https://wcdf.net/rules.htm when writing the game. The game has been updated. If a piece is clicked and has no moves, pieces with moves are briefly highlighted.
it got locked after 10 moves or something like that (firefox browser). I couldn't move anything no matter where i clicked (and i was far from the end of the game)
EDIT : sorry, seems like i probably had to make a forced jump move, which i didn't know was a thing.
EDIT 2 : aren't you supposed to be able to capture in reverse direction ?
It's pretty surprising to me the number of people who don't know the rules of checkers here. I guess they were probably taught by a friend or family member who was using house rules.
a King? in checkers? we call the game "Dame" (as in Dame Judy Dench) and the piece transforms into said Dame with "the usual" super powers. Which are different from the King's. Of course. :-)
I believe I referenced https://wcdf.net/rules.htm for rules. I had these questions myself when writing the game. Updated the README to link to the intended rules.