![]() |
Forum Index : Microcontroller and PC projects : CMM2: TSCP Chess
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4904 |
Hi Kevin, One change I made was replace BLUE with CYAN for the tiles, since BLUE text is not easy to distinguish against the black background on my monitor. Volhout Edited 2025-01-08 00:12 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 594 |
Hi Peter & Harm, Now updated to remove the bug Peter found, change Blue to Cyan, in the moves display, as per Harms sugestion, added 'auto' to the help menu, 'off' will now stop the computer auto responding to a manual move you make, 'on' turns the effect of 'off' off and forces to computer to take this move, other minor tweaks.... Have fun, maybe.. Regards, Kevin. chess2pico.zip Edited 2025-01-08 02:31 by Bleep |
||||
homa![]() Guru ![]() Joined: 05/11/2021 Location: GermanyPosts: 462 |
Hi guys, Where can I find the current/last basic-only version for the PicoVGA/HDMI? So only one Pico board and not two. So that I can load the chess program on the 6.00.01 version. I really like Peter's new graphical chess demo! But it is not yet implemented in the "Basic only" version, is it? Matthias |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 594 |
Hi Matthias, Please only use this for testing purposes, not for any form of distribution, we do not have permission from Tom Kerrigan to re-distribute his work. To get it to play itself set autoplay to 1. Otherwise enter your move, or enter 'on' to get the computer to calculate a move, you currently have to do this every time you want the computer to respond. Otherwise I think it is working fine, is VERY slow, compaired to a compiled C version. This version will only work on a 2350 as the GEN_STACK and MAX_PLY are too large for the memory of a 2040. Regards. chessbas.zip Edited 2025-01-08 05:05 by Bleep |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10088 |
I think this is OK for distribution as Tom has included the uf2 file on his web page http://www.tckerrigan.com/Chess/TSCP/Community/ |
||||
homa![]() Guru ![]() Joined: 05/11/2021 Location: GermanyPosts: 462 |
Hi Kevin, Hi Peter. Thanks for the program and also for the link to the source. Kevin, according to your post, you once wrote an email to Tom (https://www.thebackshed.com/forum/ViewTopic.php?TID=15223&P=1#192678 ). Did you ever get an answer? But you are right, the pace is very slow. If I understand correctly, I can load the "C-variant" onto a second Pico and then connect the two, how exactly? Just boot both Picos at the same time? Or boot the C version first, then the HDMI version? Exciting questions remain :-) But I also love the pure basic version. Really impressive! Matthias |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4904 |
Hi Matthias, I use a pico reference design from Peter that has 3 pico sockets. pico In essence you connect 5V (or Vsys), GND on both pico's. Then establish a UART link. Kevin uses GP0/GP1 on the mmbasic pico, I use GP4/GP5. The TSCP chess pico uses GP0/GP1 (and also console on USB). Make sure you cross-wire... TX ro RX and RX to TX. Success, Volhout P.S. Peter: Tom has "approved" the uf2 file. But he may not be aware of the MMBasic implementation (the super slow one). P.P.S. Since the TSCP pico also works on the USB console, you can also develop the display on a PC using MMB4W. . Edited 2025-01-08 17:47 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 594 |
Hi, I have tweaked the chess client, so that the re-drawing of the chess board is now significantly faster, (X4) otherwise just a tidy up. The speed improvement will only really be relevent when running 'auto' with a relativly shallow search depth, 4 or 5 or 6, by the time you get to 7 tscp is spending up to 5mins to make a move. As far as I am aware this is now complete and fully functional. Regards, Kevin. chess2pico.zip |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 594 |
Hi Harm, Attached is a zip with 3 versions of the Chess client, One for VGA, one for 480x320 LCD and finally 320x240 LCD. Everything needed is in the "ChessClient" directory (hopefully). The chess client needs to be run from that directory. The 320 version is a very tight squeeze on that size of screen, but it is fully functional. The only catch is that you only see the command you have typed, when you hit return, otherwise everything is complete I think. Regards Kevin. ChessClient.zip |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4904 |
Hi Kevin, Good you included also the uf2 for the chess engine. I will try the VGA version next weekend (when I get access to a second pico to image). I may even wire that one up to the game*mite to check the 320x240 version.... Volhout . PicomiteVGA PETSCII ROBOTS |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 594 |
Hi Harm, That'll be great, I just tested all the versions on RC24 and it still seems to be working. :-) But this latest version must do some extra checking, as it found I was using the word board as a subroutine name and also board$ as a string name and produced an error, so I have now renamed 'board$' to 'brd$' should then be fine. Regards Kevin. |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4904 |
Hi Kevin, Have the 640VGA version running now. Works fine. Some minor remarks: - GP5/GP4 are COM2 ... not COM1 - Dark Blue in the score sheet does not play well with my monitor, I have replaced it with CYAN. Good work !! Volhout PicomiteVGA PETSCII ROBOTS |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 360 |
Thank you Bleep and Volhout! I will try it on my 800x480 LCD. It would be very nice, if it would support touch somehow. Maybe I look into it. |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 594 |
Hi Harm, Yes I wasn't sure about that, I'll correct the comment. I have a feeling you said something similar last time about colour, I'll change it to Cyan. :-) Glad it is working. I will be giving the HDMI 640 mode 1 a try next, to see if that works the same. Regards Kevin. |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 594 |
Hi Harm, Ammendments as suggested by you in new zip below. ChessClient.zip Picutures for everyone else. 640x480 VGA on a HDMI screen. ![]() 480x320LCD. ![]() Regards, Kevin. |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 360 |
Very nice but I wouldn't mix red and green because many have a problem with differentiating |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4904 |
Hi dddns, These colors have always been this way, but I understand that colorblind people exactly have this problem. In stead of trying all different colors, some don't play well together,maybe a simple Black/white mode could be made through a command "color off". The sprites used are in essence black and white, only the tiles under them change them into colors. Volhout Edited 2025-05-21 03:07 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 360 |
I think this is one of the best ideas in the last time and a very promising project because TSCP has a very good acceptance in the chess community. I simply looked what they like Only as example but I would orientate myself on them because they play it and not me ;) |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 360 |
And I have done much with VGA in the last time and I know, that these colors look very nice on screen with PicoMite..so why not. In the end I would say: make'em configurable is the best |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4904 |
@kevin The 320 LCD version does not show any moves, and prompt. There is a board, it runs chess (auto) using the PC console. When playing yourself, you also get no prompt on screen, now moves in the table. When I read the code correctly it seems you are running the game completely in framebuffer, and you are copying to LCD. Maybe there is one too many FRAMEBUFFER COPY F,N..??? I guess for gameboy we need to talk to Tom to get the on screen keyboard implemented also. ![]() Volhout . P.S. the gameboy is running 5.09.00rc5. Should I change to 6.00.02 for any reason ? I guess there is no change in BLIT as far as I know. Edited 2025-05-21 04:07 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |