+Rick Reynolds Posted March 24, 2023 Share Posted March 24, 2023 I've created a little program that runs on a Commodore PET that will replay game(s) of chess provided to it in a data file. It's something I like to have running in my office on my PET 2001. This is what the initial chessboard looks like. Below is a video of a game in progress. animated.mov Here's a snapshot of it running my my physical PET. The current version is 2.0. The main change from v1 is that now the program reads the data file from disk one game at a time. This should mean the previous limitation on how big the data set can be is lifted. The only limitation now should be the size of a disk file. There is a utility given with the program to allow you to encode your own chess PGN files yourself. chessreplay_v2.zip ---- older releases ---- chessreplay_v1.zip 2 Quote Link to comment Share on other sites More sharing options...
brain Posted March 24, 2023 Share Posted March 24, 2023 (edited) Why does the chess file need to be loaded into memory? Can't you just open the file for reading and just read data until a CR or LF and then process the single move? That way, files up to the size of the drive in use (8050/8250/sfd1001/X040) Jim Edited March 24, 2023 by brain Quote Link to comment Share on other sites More sharing options...
+Rick Reynolds Posted March 24, 2023 Author Share Posted March 24, 2023 43 minutes ago, brain said: Why does the chess file need to be loaded into memory? Can't you just open the file for reading and just read data until a CR or LF and then process the single move? That way, files up to the size of the drive in use (8050/8250/sfd1001/X040) Jim Yep, I'd love to do that in a future version. I never found a recipe for reading from a file on a PET in assembly that I could reproduce when I was working on coding this up. Quote Link to comment Share on other sites More sharing options...
+Rick Reynolds Posted March 24, 2023 Author Share Posted March 24, 2023 2 hours ago, Rick Reynolds said: Yep, I'd love to do that in a future version. I never found a recipe for reading from a file on a PET in assembly that I could reproduce when I was working on coding this up. Actually, I did find an article about executing BASIC commands from assembly. I'll probably attempt a work-up using that technique to see if I can pull the data one game at a time instead of all at once. Quote Link to comment Share on other sites More sharing options...
+Rick Reynolds Posted April 6, 2023 Author Share Posted April 6, 2023 I've updated the top post in the thread with version 2. It now reads from the disk one game at a time, so the limitations mentioned about version 1 should no longer apply. As noted in the README, it does require a disk drive on device 8 and BASIC 4. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.