Skip to content

Source code structure

Juules32 edited this page Sep 29, 2024 · 3 revisions

main.cpp contains the entire base implementation of the engine.

I know what you're thinking - one big file, really? Yes. I've found it to be simpler this way;

  • Faster compilation times.
  • No annoying header files with decentralized code.

Implementation Considerations

The engine is implemented with UCI integration in mind, so a global state (enclosed in the state namespace) is used to maintain information about the position.

Performance-Enhancing Features

Web Demo

web_build.cpp is used for the demo. make webassembly compiles the file to WebAssembly and exposes an API that the frontend script can interact with.

Clone this wiki locally