Toledo chess program

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
veekoo
Posts: 126
Joined: 07 Jun 2021, 07:07

Re: Toledo chess program

Post by veekoo »

Linux X86 only:

I took the code at https://nanochess.org/chess1.html screen and added

Code: Select all

#include <stdio.h>
#include <stdlib.h>
Then compiled it with GCC and run it

Code: Select all

./toledos a b c
Computer plays back and it uses 7-ply. Thinking time is about 4 secs. It is said that it's tougher to beat.

Code: Select all

./toledos a
Computer plays back and it uses 5-ply. Immediate response.

I have also tried mscp chess program in Linux X86. With it's opening book it is default playing 4-ply. It's fun to watch when you enter

Code: Select all

mscp>both
then computer plays white and black against each other. More plies can be entered for example

Code: Select all

mscp>sd 5
it uses 5-ply.
Last edited by veekoo on 22 Apr 2024, 12:59, edited 3 times in total.
lb3361
Posts: 376
Joined: 17 Feb 2021, 23:07

Re: Toledo chess program

Post by lb3361 »

Using petersieg's zipped sources from April 9th in this thread:

Code: Select all

$ glcc -rom=dev7 -map=sim -o toledos.gt1 toledo.c
toledo.c:14: warning: missing return value
toledo.c:79: warning: missing return value
$ gtsim -rom=../gigatron/gigatron-rom/dev7.rom -vmode=1975 toledos.gt1

      A B C D E F G H

   8  r n b q k b n r  8 
   7  p p p p p p p p  7 
   6  . . . . . . . .  6 
   5  . . . . . . . .  5 
   4  . . . . . . . .  4 
   3  . . . . . . . .  3 
   2  P P P P P P P P  2 
   1  R N B Q K B N R  1 

      A B C D E F G H

>e2e4

      A B C D E F G H

   8  r n b q k b n r  8 
   7  p p p p p p p p  7 
   6  . . . . . . . .  6 
   5  . . . . . . . .  5 
   4  . . . . P . . .  4 
   3  . . . . . . . .  3 
   2  P P P P . P P P  2 
   1  R N B Q K B N R  1 

      A B C D E F G H


*B8-C6 (98)

      A B C D E F G H

   8  r . b q k b n r  8 
   7  p p p p p p p p  7 
   6  . . n . . . . .  6 
   5  . . . . . . . .  5 
   4  . . . . P . . .  4 
   3  . . . . . . . .  3 
   2  P P P P . P P P  2 
   1  R N B Q K B N R  1 

      A B C D E F G H

>
This means the compiler works but that the execution is really slow.
Now trying the same code on www.gigatron128k.com, running overnight...
lb3361
Posts: 376
Joined: 17 Feb 2021, 23:07

Re: Toledo chess program

Post by lb3361 »

Using petersieg's zip of April 9th (above in this thread), compiled for dev7, run in mode 3 in gtemuAT67:
Screenshot 2024-04-21 at 7.27.04 PM.png
Screenshot 2024-04-21 at 7.27.04 PM.png (97.05 KiB) Viewed 5272 times
Toledo has answered e2e4 after only a few hours.

It also work inside http://www.gigatron128k.com, but the problem was that the emulation is suspended when the browser tab is not in the foreground (e.g. when another tab is selected, or even when the screen saver is triggered!).
Screenshot 2024-04-21 at 11.47.24 PM.png
Screenshot 2024-04-21 at 11.47.24 PM.png (84.09 KiB) Viewed 5267 times
Attachments
toledo64.gt1
(21.99 KiB) Downloaded 410 times
toledo.c
(3.33 KiB) Downloaded 395 times
Post Reply