CPCWiki forum

General Category => Programming => Topic started by: ComSoft6128 on 14:58, 13 July 20

Title: BASIC - CHESS.BAS
Post by: ComSoft6128 on 14:58, 13 July 20
Pre 1995 PD Chess game.
Program is Listed at the end of the video.

From?

By?

Date?

https://www.youtube.com/watch?v=RNKIMl1XVdo (https://www.youtube.com/watch?v=RNKIMl1XVdo)

Not emulated - original hardware and software


Link:


https://www.bbc.com/news/technology-31028787

Title: Re: BASIC - CHESS.BAS
Post by: Gryzor on 08:09, 14 July 20
Hey that's neat. I wonder how well it plays.
Title: Re: BASIC - CHESS.BAS
Post by: roudoudou on 08:53, 14 July 20
Quote from: Gryzor on 08:09, 14 July 20
Hey that's neat. I wonder how well it plays.
Very, very, very, very badlyit's a challenge for a minimal engine less than 1K
Title: Re: BASIC - CHESS.BAS
Post by: Gryzor on 10:02, 14 July 20
Ha :D Still, it's quite a feat to fit the logic...

Of course there was this: https://en.wikipedia.org/wiki/1K_ZX_Chess
Title: Re: BASIC - CHESS.BAS
Post by: AMSDOS on 10:56, 14 July 20
Sorry I'm no help with this, but it's nicely coded, which makes me think it's out of a book, not necessarily an Amstrad BASIC book, I'm thinking more Generic given the look of the game itself, with a little bit of Sound and Graphical Title added into the code.
Title: Re: BASIC - CHESS.BAS
Post by: Trebmint on 12:35, 14 July 20
Wish I'd seen this before I started coding my Chess game on Symbos. Despite being a lot of articles & videos on chess engines its mostly irrelevant to z80 systems, and the code there is for Z80 is quite dense.
Title: Re: BASIC - CHESS.BAS
Post by: Nich on 18:01, 14 July 20
Quote from: Gryzor on 10:02, 14 July 20
Of course there was this: https://en.wikipedia.org/wiki/1K_ZX_Chess

Someone else had a go at writing a chess game for the ZX Spectrum in less than 1K:

https://web.archive.org/web/20191226041400/http://chesskelet.x10host.com/

I looked at the code a few times but I couldn't make any sense of it - which is not surprising with highly optimised code. :)
Title: Re: BASIC - CHESS.BAS
Post by: Trebmint on 19:15, 14 July 20
Quote from: Nich on 18:01, 14 July 20
Someone else had a go at writing a chess game for the ZX Spectrum in less than 1K:

https://web.archive.org/web/20191226041400/http://chesskelet.x10host.com/ (https://web.archive.org/web/20191226041400/http://chesskelet.x10host.com/)

I looked at the code a few times but I couldn't make any sense of it - which is not surprising with highly optimised code. :)
Would people be interested in a breakdown of the code for my Chess game. Admittedly its written in Quigs for Symbos, so its Basic, but not CPC Basic... but obviously is a new game that runs on the CPC.
Title: Re: BASIC - CHESS.BAS
Post by: Gryzor on 08:45, 15 July 20
Yes please. I find the topic very interesting.
Title: Re: BASIC - CHESS.BAS
Post by: Johnny Olsen on 10:36, 15 July 20
Quote from: Gryzor on 08:09, 14 July 20
Hey that's neat. I wonder how well it plays.

Here it is, so you can test it yourself.
I just found the game in my collection.
Have no idea where I got it from.

Title: Re: BASIC - CHESS.BAS
Post by: Gryzor on 10:42, 15 July 20
Thanks :)

Just tried a game - but the constant screen redrawing is so distracting...
Title: Re: BASIC - CHESS.BAS
Post by: Johnny Olsen on 11:12, 15 July 20
You have to time it, close and open your eyes.
Result no distracting.  :)

Title: Re: BASIC - CHESS.BAS
Post by: Gryzor on 11:15, 15 July 20
Not at all. My mind works like a ZX80 anyhow, it only processes stuff with the eyes closed :D
Powered by SMFPacks Menu Editor Mod