International Draughts GUI ported to Chess

Discussion of chess software programming and technical issues.

Moderator: Ras

gwiesenekker
Posts: 3
Joined: Mon Oct 19, 2026 5:57 am
Full name: Gijsbert Wiesenekker

International Draughts GUI ported to Chess

Post by gwiesenekker »

Hi,

I have now also ported my international draughts GUI (GWDGUI) entirely written by AI to Chess (https://github.com/gwiesenekker/ZGUI). Its main features are:

Supports both chess and international draughts.
UCI parameters and .ini files (including parameter substitution) can be maintained in the GUI.
Fully multi-threaded design: multiple tournaments and games can be running concurrently.
Single round-robin, double round-robin and Swiss tournaments with live tournament table.
Import games into a (not very compact) SQLite database with live lookup of the current position.
Evaluation bar and score history.
You can browse the engine PV and the annotator PV on a mini-board.
Only for International Draughts (for now): MCTS annotator supported by GWD (my international draughts engine).

The first version of GWDGUI was entirely written by ChatGPT under my guidance ('Use message queues for GUI-thread communication. Use finite-state-machines for the GUI and thread state' etc.) but not yet in my current '1+1+1=4' mode: one AI writing code, another AI and a human reviewing it. Everything seemed to work until I started adding tournament functionality with multiple games running concurrently: GWDGUI started to error-out all the time. It turned out that without you noticing it the code had become a 'house of cards' with inconsistent game states 'everywhere': the GUI, the threads etc. You then realize that the GUI (and the threads) should use a 'game tree' as the 'source of truth': everything (moves, PVs, evaluations etc.) should be written to and read from the 'game tree'. The second version of GWDGUI (written by ChatGPT) used that and again everything seemed to work until I started to port GWDGUI to Chess in '1+1+1=4' mode. The first code review of GWDGUI by Claude uncovered about 20(!) shadow states.
MacOS is not a primary development platform for me, but GWDGUI also worked on MacOS with one line code change (and an obscure linker flag), so ZGUI should be easy to port to MacOS.

Regards,
GW
orac81
Posts: 11
Joined: Sat Jul 13, 2024 2:19 pm
Full name: Adrian millett

Re: International Draughts GUI ported to Chess

Post by orac81 »

Its interesting, I haven't yet gone down the road of AI programming, but I guess its inevitable.

By the way, for Chess programmers here, the damforum has quite a lot of activity around draughts/checkers programming, and is worth a look:

https://damforum.nl/viewforum.php?f=53

There are threads on GPU engines, 12 piece endgame databases (10x10 ten piece), etc.

You will find the game databases/examples in PDN format, which is related to PGN, I was the original proposer of that format.
gwiesenekker
Posts: 3
Joined: Mon Oct 19, 2026 5:57 am
Full name: Gijsbert Wiesenekker

Re: International Draughts GUI ported to Chess

Post by gwiesenekker »

Hi,

I have picked up my decades old chess program ZZZZZZ again. I don't want to turn it into another clone, I am porting all my ideas from my international draughts program GWD, but AI is of course a big help: a full UCI interface was added within a minute. I noticed that a new version of ZZZZZZ is automatically tested against the previous version using (I think) CuteChess and improvements are analyzed using (G)SPRT. We don't have this for international draughts, so I added it to ZGUI, but it also works for chess. You can run a tournament (even between multiple engines) starting from a (randomized) set of ballot positions. While the tournament is running you can watch the (G)SPRT results live, but you can also get the (G)SPRT results when the tournament has finished. I have also added a CLI interface for it, so you can start a tournament, get the status and stop the tournament all from the CLI. This allows you to start a test from a script and stop early if a (G)SPRT hypothesis is proven.

Release 1.1 is available on github: https://github.com/gwiesenekker/ZGUI. Highlights:
  • Interactive --cli with live GUI tournaments: list engines, run matches, query aggregates/opening pairs/GSPRT, and stop tournaments.
  • Opening ballots with colour-reversed pairs, optional shuffling and saved replay order.
  • Live paired GSPRT comparison and optional Hub/UCI time-forfeit adjudication.
  • Private UCI settings per registration.
  • Added “Delete from here...” in the Game Tree to remove a move and its continuations, with confirmation. Available when the game is no longer running; earlier moves and sibling variations are preserved.
  • Clearer tournament controls/reasons, saved-game selection and conditional game following.
  • Finished-game worker cleanup and fast, reliable shutdown after long matches.
  • Refreshed searchable offline manual.
Regards,
GW