|
Forum Index : Microcontroller and PC projects : TSCP chess program updated
| Author | Message | ||||
| Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 890 |
Hi Harm, Yes I did notice that, but I just cut & pasted that section of code from the chess client version so assumed it was correct & didn't check any further, I'm now home & have realised that the banner which I couldn't see earlier, is not in a good position either so I'll move that as well. Regards Kevin |
||||
| Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 890 |
Attached is the latest update to Chess, I've corrected the path '\\' moved the banner, a few other minor cosmetic changes. I have tested it on a 2040 VGA now as well and it's surprisingly fast, only about 20% slower than the 2350, so still easily fast enough to give a game, maybe not if your are a chess prodigy. ;-) Obviously this will also work with a HDMI output using the VGA screen mode. Regards Kevin. chesscsubvga.zip |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6336 |
Hi Kevin, There is one feature you added that is confusing. When using 640x480 on VGA, the colour is produced using tiles. The feature you added is highlighting the recent move by a box around the related fields. But the colour of the box (fringe) also changes the color of the piece. A white bishop that took a red pawn turned red on the play field. Only by looking at the moves (in text) I noticed this is wrong. It feels like the board is not updated completely every time. Sometimes a piece becomes invisible, and next move (board update) the piece is back again (just witnessed a white pawn disappearing , and next move re-appearing). Is it possible that a time-out results in an incomplete board when asked from TSCP core. Volhout Edited 2026-11-18 01:29 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 890 |
Yes it should only update the pieces that change I'll have a look. |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12327 |
I've updated the code to add a chess clock using the new threads capability https://github.com/UKTailwind/PicoMite/tree/PicoMite-V8.00.00b5/Bas/threads/chess It needs MMbasic V8.00.00b5 or above to run (just posted). It also fixes the bug reported above Edited 2026-11-28 02:58 by matherp |
||||
| Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 890 |
Hi Peter, Thanks for the update, I hadn't quite understood what Harms bug was, I'd had a look, but then forgot to go back, so it's great that you have managed to find & and fix it. I know it's not much, but if you use -O2 for the compilation you'll get back about 1 or 2% of the speed, I found for this case O2 was smaller & marginal faster. Regards Kevin. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |