chess

By clecam, 19 October, 2025

I wanted a reliable way to generate all legal K+R vs K chess positions with White to move for AI training data.
After exploring several constraint programming tools (MiniZinc, OR-Tools, and Prolog variants), I ended up using Scryer Prolog, embedded directly from Rust.

In the end, I realized that I didn’t even need constraint programming (CLP) at all — plain Prolog was enough.
The constraints were simple, the domain small, and performance was already instant.

By clecam, 26 January, 2025

The generated image is based on the simple prompt: "Create a humorous image highlighting the difficulty of programming in RUST." Even if the result is not perfect, I find it very relevant, and it made me laugh. I think every RUST programmer has struggled with the borrow checker.

I have developed a chess game in RUST offering a UCI allowing engine tournament. The link is the following: https://github.com/christophelc/chess_rust

The program is based on RUST and Actix actors.