A small little game I’m making. You can play at https://ches.vercel.app.
You need to set up these:
Then open a new Terminal and do:
git clone https://github.com/neongreen/ches.git
cd ches
Proceed with the next section.
pnpm i
pnpm dev
chess
and gameMethods
are available in the browser console. Just type it. You’ll be pleasantly surprised.
To test unmakeMove
, run:
pnpm bench:test
pnpm golden:test -s unrestricted
pnpm check
Useful to check that a refactoring didn’t change anything (the engine is deterministic right now).
# Needs to be run from the root!
pnpm golden # regenerate all
pnpm golden -s <uuid1> -s <uuid2> ... # regenerate specific challenges
git config --global http.postBuffer 524288000
Type 'import(".../@types-react-npm-18.0.26-d708995a34-10c0.zip/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
Might be caused by having several react versions