Recent

Author Topic: Anyone interested in helping test a Draughts/Checkers playing program?  (Read 6923 times)

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #15 on: October 28, 2025, 04:34:17 pm »
I ran my program in test games against two of the best Checkers programs, Kingsrow & Cake.

It did well until the late middle game (around move 20), and then lost. It does not surprise me that it lost towards the end game, because its end-game play is poor.

What I thought interesting is that Kingsrow & Cake use a large opening databases, whereas my engine has no opening database and just uses search algorithms. This suggests that my algorithms are good.

Once I get my end-game algorithms improved, it will be interesting to see how it does against the computer checkers champions.
« Last Edit: October 30, 2025, 11:07:17 am by ad1mt »

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #16 on: October 28, 2025, 07:40:12 pm »
Version 7.2D has more bug fixes in moving backwards and forwards.

CM630

  • Hero Member
  • *****
  • Posts: 1579
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #17 on: October 28, 2025, 08:27:34 pm »
I run it... I am pretty sure that the colour of your board are reversed, the pawns should be on the black quadrangles, not on the white.

Ad1mt, I am posting another Draughts game. I am posting it to (hopefully) give you some ideas about the UI.
...
Red pawns...  >:(
MS had checkers in their pre Win95 windows, it was not playable on monochreome monitors, because the pawns were black and red, but both colours were displayed as black.
« Last Edit: October 28, 2025, 08:30:21 pm by CM630 »
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

speter

  • Sr. Member
  • ****
  • Posts: 477
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #18 on: October 28, 2025, 10:53:53 pm »
I run it... I am pretty sure that the colour of your board are reversed, the pawns should be on the black quadrangles, not on the white.

Ad1mt, I am posting another Draughts game. I am posting it to (hopefully) give you some ideas about the UI.
...
Red pawns...  >:(
MS had checkers in their pre Win95 windows, it was not playable on monochreome monitors, because the pawns were black and red, but both colours were displayed as black.
ad1mt's draughts game would do much better than mine on a monochrome screen. But, I do agree that he should have the pieces on dark squares (and that the bottom-left square should be dark).

cheers
S.
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #19 on: October 30, 2025, 11:25:48 am »
I am pretty sure that the colour of your board are reversed, the pawns should be on the black quadrangles, not on the white.
I have the playing squares light coloured for two reasons...

  1. The dark pieces would not be easily visible if the playing squares were dark.

  2. I'm trying to replicate the appearance of illustrations in classic books like "Win At Checkers" by Millard Hopper. In these ilustrations they have the playing squares white.

I am also trying to get the appearance of a having a real draughts board on the table in front of you. I dislike the UI/appearance of most checkers programs.
« Last Edit: October 30, 2025, 12:09:31 pm by ad1mt »

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #20 on: October 30, 2025, 12:36:13 pm »
Version 7.3A
This has...
- the learning database enabled.
- keyboard piece movement removed (this was always temporary).
- many bug fixes.

Unfortunately, there is still an intermittent bug when using the ctrl-left and ctrl-right keys to go backwards and forwards through the history of a game. I will catch it!
« Last Edit: October 30, 2025, 12:44:00 pm by ad1mt »

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #21 on: October 30, 2025, 01:53:49 pm »
Unfortunately, there is still an intermittent bug when using the ctrl-left and ctrl-right keys to go backwards and forwards through the history of a game. I will catch it!

Version 7.3B fixes the above bug... at last!

Josh

  • Hero Member
  • *****
  • Posts: 1447
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #22 on: October 30, 2025, 03:46:00 pm »
hi

quick fiddle, red/black board change
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #23 on: October 30, 2025, 06:21:10 pm »
quick fiddle, red/black board change
That's pretty, but...  I can't see the black pieces, and the red pieces would give me a headache after an hour of playing. I don't like the menu along the bottom... when thinking deeply during a game, I want as few distractions as possible.

If you really would like to help with the coding, then here is a list of things that would help...

  1. detecting an [esc] keypress while the engine is running (in the engine.check_quit_or_timesup procedure) so that the user can interrupt the engine

  2. debug the intermittent glitch where a mouse click move goes wrong and incorrectly generates an "invalid move" error.

  3. put a 1-pixel border around the entire form/window to separate it from the Windows desktop, while keeping the mouse x/y co-ordinates correct.

  4. create a set of piece images (in a similar size, shape, design and colour), but with nicer 3d-shading.

CM630

  • Hero Member
  • *****
  • Posts: 1579
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #24 on: October 30, 2025, 07:28:58 pm »
quick fiddle, red/black board change
That's pretty, but...  I can't see the black pieces...
You would, if they were white  ;D
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

Josh

  • Hero Member
  • *****
  • Posts: 1447
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #25 on: October 30, 2025, 08:10:43 pm »
3d pieces, thinking flashing when thinking, user can abort thinking...
changing square order
or green
« Last Edit: October 30, 2025, 09:19:55 pm by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #26 on: November 01, 2025, 07:05:07 pm »
Version 7.3D
Lots of bug fixes.
Unfortunately, Database mode, Learning mode and Autoplay mode are still not working 100% correctly. These will be fixed soon.

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #27 on: November 02, 2025, 10:19:36 am »
Version 7.3E
Bug fixes.

ad1mt

  • Sr. Member
  • ****
  • Posts: 487
    • Mark Taylor's Home Page
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #28 on: November 02, 2025, 10:20:40 am »
3d pieces, thinking flashing when thinking, user can abort thinking...
changing square order
or green
Are you going to help me by posting your code?
Thanks.

Roland57

  • Hero Member
  • *****
  • Posts: 544
    • msegui.net
Re: Anyone interested in helping test a Draughts/Checkers playing program?
« Reply #29 on: November 02, 2025, 06:59:24 pm »
Interesting project!

Made a quick test under Linux. 1° I had to remove (unused) reference to Windows unit. 2° CThreads must be the first unit called,

Code: Pascal  [Select][+][-]
  1. // draughts.lpr
  2. uses
  3.   {$IFDEF UNIX}
  4.   cthreads,
  5.   {$ENDIF}
  6.   sysutils

otherwise:

$ ./Draughts
Threading has been used before cthreads was initialized.
Make cthreads one of the first units in your uses clause.
Runtime error 211 at $000000000047635D
  $000000000047635D
  $0000000000440FBC


After that I can compile and start the program. Maybe I will come back later in the discussion.

Good luck with this project.
« Last Edit: November 02, 2025, 07:01:09 pm by Roland57 »
My projects are on Codeberg.

 

TinyPortal © 2005-2018