Quirkafleeg for the Commodore 64/128 – new 6502 chess engine

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

astrange
Posts: 4
Joined: Mon Nov 02, 2026 11:03 am
Full name: Anders Strange

Quirkafleeg for the Commodore 64/128 – new 6502 chess engine

Post by astrange »

Hi all,

I'm releasing the Commodore 64/128 version of Quirkafleeg, the retro chess engine I released for the ZX Spectrum 48K earlier this month. The goal of the project is to write the strongest chess engine for each of the classic home computers.

Image

Results (40 s + 11 s, 200–400 games per match)
  • Against Colossus 4.0, long regarded as the strongest C64 chess program, the standard C64 version scores +113 Elo.
  • On a C128 the program detects the machine and uses its 2 MHz mode, and that is where it takes down The Final ChessCard:
    – Default mode (2 MHz in the border area, board visible, about 1.4x speed): 52.8 % against the card (+19 Elo, 400 games), i.e. level or slightly ahead. Against Colossus 4.0: +131.
    – Full 2 MHz mode (screen blanked while thinking): 70.2 % against the card (+149 Elo, 400 games), searching deeper than the card. Against Colossus 4.0: +257.
  • On a standard C64 and on the Spectrum 48K it is close to even with the card. On balanced openings the card has a small edge (Quirkafleeg scores 43–44 %). With random openings the 48K engine came out on top (+31 Elo). The card is really a dedicated chess computer in a cartridge, with its own 5 MHz 65C02 and about five times the computing power of the C64. Had software of this strength existed in the late 1980s, the card would hardly have been needed.
For now, Quirkafleeg claims the title of strongest chess program on the standard Z80 ZX Spectrum and on the Commodore 64/128. Counter-claims are welcome.

How the 2 MHz mode works on the C128

In C64 mode the C128 can still switch the CPU to 2 MHz, but the VIC-II can't fetch screen data at that speed, so the display breaks up. Quirkafleeg handles it in two ways:
  • Default, about 1.4x: a raster interrupt switches to 2 MHz when the beam enters the lower border and back to 1 MHz just before the visible area starts. The board stays visible and stable, and the time spent in the border and in vertical blank runs at double speed.
  • Full 2 MHz: the screen is blanked while the engine thinks and comes back when it's your move.
On a standard C64, or with 1 MHz selected, it runs at normal speed.

Image

Why

The hardware is the same as in 1986. What has changed is everything around it: forty years of published chess programming research, cycle-exact emulators that can play thousands of games at the original speed, and a C reference model that matches the assembler node for node. Together they make it possible to take the old machines further than they went back then. No change goes in without a measured gain.

The C64/128 version is in beta and will be released before Christmas. Testers with a real C64/C128 or VICE are welcome to send me a PM. Freeware.

Next target: the 68000

Next up is the Motorola 68000, with the Amiga 500 and Atari ST as the platforms. The work has started, and the goal is the same as before: the strongest chess program on the machine.

Spectrum version, details and downloads: https://frontpoint-sport.com/quirkafleeg/

Anders Strange