Human (White) vs random bot (Black), with modular architecture:
src/Chess/Types.bendsrc/Chess/Engine.bendsrc/Chess/Bot.bendsrc/main.bend
bend src/main.bend --no-strictbend src/main.bend --to-js --no-strict > /tmp/minimal_chess.js
bend src/main.bend --to-web --no-strict > /tmp/minimal_chess.htmlTo preview the web build with chess-piece SVG files available, run:
./scripts/preview_web.shThen open http://127.0.0.1:61424.
The deployed site is served from docs/, so rebuild that directory before pushing deploy changes:
./scripts/build_docs.shbend src/Chess/Tests.bend --to-js --no-strict > /tmp/minimal_chess_tests.jsThis project compiles and runs with --no-strict.
Strict mode currently rejects this app-style code shape (case-tree validation), so the current Bend2 limitation to report is strict top-level case-tree constraints for richer state-machine/UI code.