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: 5
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
Vinvin
Posts: 5379
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

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

Post by Vinvin »

Hi Anders,
Thanks for the interest in this antique computers.
I used a Commodore 128 (at home) and a ZX Spectrum + (at school) and I'm very please to look back at them sometimes.

Where is the link to download the C64/128 version, please ?
astrange
Posts: 5
Joined: Mon Nov 02, 2026 11:03 am
Full name: Anders Strange

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

Post by astrange »

The C64/128 beta is online for download and play here:

https://frontpoint-sport.com/quirkafleeg/c64/

Enjoy :D

Regards,
Anders
User avatar
mclane
Posts: 19021
Joined: Thu Mar 09, 2006 6:40 pm
Location: US of Europe, germany
Full name: Thorsten Czub

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

Post by mclane »

One Problem I see is, when I choose 40/120 it stops when time flags. But by operating 2 engines against each other manually, time can run out because you need operator time too. I cannot continue the game though after time out. Maybe you can fix this ?!

I would like to put the engine in my huge zep tepi tournament with other Homecomputer software. C64 is there with Grandmaster and chess 7.5.
So we could also measure if it is stronger then the commercial Homecomputer software for c64.

There is also TacTIcon for the ti99/4a.
Etc.
What seems like a fairy tale today may be reality tomorrow.
Here we have a fairy tale of the day after tomorrow....