Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 02:21 25 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: TSCP Chess

     Page 1 of 6    
Author Message
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 06:55pm 27 Sep 2022
Copy link to clipboard 
Print this post

TSCP Chess for Color Maximite 2


TSCP Chess.zip
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 07:15pm 27 Sep 2022
Copy link to clipboard 
Print this post

 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 09:36pm 27 Sep 2022
Copy link to clipboard 
Print this post

For those interested, Tom Kerrigan also developed another chess program named tChess Pro for Apple iPad and iPhone.  It allows one to play against a computer opponent rated between 500 and 2500 ELO.
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 09:44pm 27 Sep 2022
Copy link to clipboard 
Print this post

In the future, I would like to make modifications to this program.
1. Add higher resolution graphics, perhaps using 1280 x 1024 resolution mode in place of 800 x 600 mode
2. Create a more extensive opening book
3. Create chess variants such as Chess 960, Capablanca Chess, Wide Chess 12, and Reformed Courierspiel
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 813
Posted: 06:55am 28 Sep 2022
Copy link to clipboard 
Print this post

   
Very good!

...can you port this for the PicomiteVGA as well? For me it would be important that you can make the program really weak! I like to play chess very much, but I am lousy...


Frank
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5714
Posted: 07:47am 28 Sep 2022
Copy link to clipboard 
Print this post

Someone else who plays like I do then. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 01:47pm 28 Sep 2022
Copy link to clipboard 
Print this post

  Frank N. Furter said      
Very good!

...can you port this for the PicomiteVGA as well? For me it would be important that you can make the program really weak! I like to play chess very much, but I am lousy...


Frank


Sorry, I do not own a PicomiteVGA.   At some point in the future I may investigate adding an option to make the program weaker among other modifications.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3510
Posted: 03:13pm 28 Sep 2022
Copy link to clipboard 
Print this post

Hi bar1010,

Switch the CMM2 to mode 7 (320x240)
That will most likely run with minor changes on the pico.

Volhout
PicomiteVGA PETSCII ROBOTS
 
Rickard5

Guru

Joined: 31/03/2022
Location: United States
Posts: 328
Posted: 10:59pm 28 Sep 2022
Copy link to clipboard 
Print this post

Thank you This ism Going to be fun :) I can't wait to get home to play it :)  I'm not playing on Chess.com no more <insert Hans Niemann - Magnus Carlsen Comment here >
I turned the volume on the monitor to max and could hear sound. Thanks Stanleyella
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 01:09am 29 Sep 2022
Copy link to clipboard 
Print this post



Here is a new BMP file that I might use for higher resolution piece graphics.  The squares are 115x115 pixels compared with 60x60 pixels for the current version.
 
knivd

Regular Member

Joined: 07/09/2014
Location: United Kingdom
Posts: 71
Posted: 08:47am 29 Sep 2022
Copy link to clipboard 
Print this post

I think I had posted this some long time ago... Here is my old chess, was written for a much older version of mmbasic but I guess elements of it could be useful to someone else

chess.zip
 
Rickard5

Guru

Joined: 31/03/2022
Location: United States
Posts: 328
Posted: 06:37pm 29 Sep 2022
Copy link to clipboard 
Print this post

Duplicate post sorry
Edited 2022-09-30 04:58 by Rickard5
I turned the volume on the monitor to max and could hear sound. Thanks Stanleyella
 
Rickard5

Guru

Joined: 31/03/2022
Location: United States
Posts: 328
Posted: 07:42pm 29 Sep 2022
Copy link to clipboard 
Print this post

  bar1010 said  
Sorry, I do not own a PicomiteVGA.   At some point in the future I may investigate adding an option to make the program weaker among other modifications.


Bar PM ME I have a Pm VGA Board I'd send ya if you'd build it and port Chess to it, But Please don't Lobotomize it it beat me 2 out of 5 games last night, and interestingly enough I played it against GNU Chess on my Nvidia Jetson Nano this morning, and the Jetson got mad and accused me of Cheating But seriously the engine is perfect and the Graphics are nice only thing is wish it would show the Score sheet so we can study the game after, because the idea of creating a chess engine simply amazes me

and a clock that plays speed chess OMG OMG OMG I'd be your servant for life Speed chess with a chess engine OMG
I turned the volume on the monitor to max and could hear sound. Thanks Stanleyella
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 08:28pm 29 Sep 2022
Copy link to clipboard 
Print this post



Now have modified TSCP Chess to have a new pieces set and higher resolution.  The original resolution was 800x600.  The new resolution is 1280x1024.  The text on the left side of the screen is quite small though.  Might soon post an updated ZIP file after more testing.
Edited 2022-09-30 06:32 by bar1010
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 892
Posted: 08:52am 30 Sep 2022
Copy link to clipboard 
Print this post

how about a Picomite Port with a GUI in "Chessmaster 2000" Style

here for 640x480x2 but can be downscaled for 320x240x16

MODE 1
CLS RGB(White):Colour 0
Line 72,146,568,146:Box 8,402,625,12
Line 72,146,8,402:Line 568,146,632,402

For y%=0 To 7
Line 72-y%*8,146+y%*32,568+y%*8,146+y%*32
 n%=8*(7-y%)
 Text 2+n%,32+124+y%*32,Str$(8-y%),,,,0,RGB(White)
 Text 632-n%,32+124+y%*32,Str$(8-y%),,,,0,RGB(White)
Next
For x%=0 To 7
Line 72+x%*62,146,8+x%*78,402
Next
For y%=0 To 7
 For x%=0 To 7
   If (x%+y%)Mod 2 Then
     p1X%=(72-8*y%)+x%*(62+2*y%)
     p1Y%=146+y%*32
     p2x%=(72-8*y%)+(x%+1)*(62+2*y%)
     p2Y%=p1Y%
     p3X%=p1X%+(-8+x%*2)
     p3Y%=p1Y%+32
     p4Y%=p3Y%
     p4X%=p2X%+(-8+(x%+1)*2)
     Triangle p1X%,p1Y%,p2X%,p2Y%,p3X%,p3y%,0,Fill
     Triangle p3X%,p3Y%,p4X%,p4Y%,p2X%,p2y%,0,Fill
    EndIf
  Next
Next
F$=String$(9,32)
T$="A"+F$+"B"+F$+"C"+F$+"D"+F$+"E"+F$+"F"+F$+"G"+F$+"H"
Text 40,420,t$,,,,0,RGB(White)



'no comment
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 01:27pm 30 Sep 2022
Copy link to clipboard 
Print this post

I will not be developing a Picomite port.  However, if someone else wants to do so or wants to add new functionality to the CMM2 version, that would be fine as long as you request Tom Kerrigan’s permission to do so.
Edited 2022-10-01 07:27 by bar1010
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 411
Posted: 10:20am 01 Oct 2022
Copy link to clipboard 
Print this post

Hi Bar,
I have just sent an Email to Tom, requesting his permission.
May we also have your permission to convert to a PicoMite, any of the code that is specifically your own.
Regards Kevin Moore.
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 411
Posted: 11:50am 01 Oct 2022
Copy link to clipboard 
Print this post

Hi Volhout,
Continuing from here :- Link to Post
Yes agreed, we may need a debug version of PicoMite MMBasicVGA.
By changing the size of some arrays and or the depth of search variable, I do get different lines erroring out, but they all seem to be relatively early in the code, though this may just be that that is the bit of code used the most.
for example:-
Else
For j=0 To offsets(piece(i))-1
n=i
Do
n=mailbox(mailbox64(n)+offset(piece(i),j))
If n=-1 Then Exit
If n=sq Then
attack=1:j=offsets(piece(i))-1
i=63:Exit
EndIf

I briefly get "ERROR : I Different type already declared" before it dies.
So the crash is not consistent. This piece of code is looped through a lot, so the variable 'I' will have been used in previous loops with no problems. I did attempt braking out of the program at some point before the crash and checked memory usage and it looked to be fine, just over 50%.
Regards Kevin.
Edited 2022-10-01 21:59 by Bleep
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 02:16pm 01 Oct 2022
Copy link to clipboard 
Print this post

  Bleep said  Hi Bar,
I have just sent an Email to Tom, requesting his permission.
May we also have your permission to convert to a PicoMite, any of the code that is specifically your own.
Regards Kevin Moore.


Yes, you may convert to PicoMite any of the code that is specifically my own.  Also you may do so for any of the programs that I have uploaded to the Back Shed forum or will upload in the future.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3510
Posted: 06:58pm 01 Oct 2022
Copy link to clipboard 
Print this post

Hi Kevin,

With the picomite 5.07.05RC4 you can run the chess code by changing the number of nodes that it searches. Currently every 128 nodes it checks if there is a time overrun, if not it continues adding nodes. If we skip at the first check the number of nodes is limitted to 127. In early game (all parts oon the board). it will not search deeper that 2 ply.


If (nodes And 127)=0 Then
   'If Timer>stop_time Then stop_search=1
   stop_search=1
 EndIf
 If stop_search<>0 Then Exit Function


If (nodes And 127)=0 Then
   'If Timer>stop_time Then stop_search=1:Exit Function
   stop_search=1:Exit Function
 EndIf



Volhout
Edited 2022-10-02 05:27 by Volhout
PicomiteVGA PETSCII ROBOTS
 
     Page 1 of 6    
Print this page
© JAQ Software 2024