Source for the core is now public, for anyone who wants to inspect the construction: https://github.com/sliday/jev-chess-algo - choice.ts builds the Choice question over every legal move (illegal moves unrepresentable), hanging.ts is the one-ply hanging-piece check doing the counting in code. npm run demo prints the exact request the live game sends.