op12no2/lozza — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a JavaScript chess engine like Lozza that speaks the UCI protocol and can run both in the browser through a Web Worker and in Node so normal chess GUIs can load it.

I want the main result to be a single lozza.js file that a web page can start with new Worker, then send commands like uci, ucinewgame, position startpos, and go depth 10, with the engine replying in plain UCI text. It should also work from the command line with Node so someone can point a chess interface at it.

Keep the code easy to tweak, with source files that can be rebuilt into the final file. Include a basic search, evaluation using embedded network weights if possible, legal move handling, and enough UCI support to play and analyse games. It does not need stop command support or multithreading.

Please add a small browser example that shows the engine output. Look up current UCI docs online if you need to.

Want more depth? Deep Reverse