All the actual chess logic courtesy of chess.js, which I've shamelessly copied into ./src/ for convenience.
The main purpose of this (besides learning a bit about Lustre) is to be able to play against my own entry in the Gleam Chess Tournament.
Assuming the chess bot is running on port 8000, run the application as follows:
gleam run -m lustre/dev start --proxy-from=/move --proxy-to=http://localhost:8000/move
Alternatively, add CORS headers to your chess bot implementation.