CP/M chess programs

This forum is for general discussions and questions, including Collectors Corner and anything to do with Computer chess.

Moderators: Harvey Williamson, Steve B, Watchman

Forum rules
This textbox is used to restore diagrams posted with the fen tag before the upgrade.
User avatar
BenRedic
Member
Posts: 163
Joined: Mon Jan 09, 2017 11:29 am
Location: Norway

CP/M chess programs

Post by BenRedic »

Merry belated christmas everybody! I have a small present for you guys. I have not seen much on these pages about chess for CP/M based computers, so I started digging a bit around. I'll go into details further down in this post, but first we go straight for the good stuff, here's a small package with six different chess programs (Microchess, Sargon x2, MyChess x2 plus one unknown program):

https://nofile.io/f/TFhDv9HazSa/CPMCHESS.7z

Usage is dead easy. Download. Unpack. You get a folder with a bunch of files; Some *.COM files, which are the CP/M chess programs, and one file called cpm.exe which is the emulator. To play one of the games, drag the COM file of your choice on top of cpm.exe. Alternatively, open a command line manually, cd into the directory with the files and run "cpm SARGON.COM" or whatever you like. There are also some doc and source files for some of the games.

This 7z contains the following files:

- cpm.exe, cpm.txt: The emulator used to play the CP/M COM-files. Found on http://takeda-toshiya.my.coocan.jp/cpm/index.html

- SARGON.COM. Needs little introduction. SARGON.COM is the original Sargon. There are multiple slightly different versions of the first Sargon around, mostly compiled for different brands of computers, some with different character or graphics support.

Code: Select all

Welcome to chess! care for a game?
Y
Do you want to play white (W) or black (B)?
W
Select look ahead (1-6)
2
Board display every move?
Y
  Player Sargon
  -------------


  a  b  c  d  e  f  g  h
8 BR BN BB BQ BK BB BN BR 8
7 BP BP BP BP BP BP BP BP 7
6 -- ** -- ** -- ** -- ** 6
5 ** -- ** -- ** -- ** -- 5
4 -- ** -- ** -- ** -- ** 4
3 ** -- ** -- ** -- ** -- 3
2 WP WP WP WP WP WP WP WP 2
1 WR WN WB WQ WK WB WN WR 1
  a  b  c  d  e  f  g  h

01 E2-E4
- SARGON2.COM actually reports that it is Sargon 2.1. Seems to play slightly different book moves than other versions of Sargon 2 I have tested.

Code: Select all

               SARGON 2.1
                   BY
         DAN AND KATHY SPRACKLEN
        MODIFIED TO OPERATE UNDER
          DIGITAL RESEARCH CP/M
                   BY
    KEVIN LEAVELLE AND JIM HENDERSON
         COPYRIGHT (C)1981 BY
       HAYDEN BOOK COMPANY, INC.
          ALL RIGHTS RESERVED


        ****** SARGON 2.1 ******


SELECT OPTIONS
NEW GAME, CHANGE BOARD OR EXIT? (G,C,X):g
PRINTER?(Y,N)N

YOUR COLOR? (B,W):w
LEVEL OF PLAY? (1-6):3
DISPLAY BOARD EVERY MOVE?(Y OR N)y

  A  B  C  D  E  F  G  H
8 BR BN BB BQ BK BB BN BR 8
7 BP BP BP BP BP BP BP BP 7
6 ::    ::    ::    ::    6
5    ::    ::    ::    :: 5
4 ::    ::    ::    ::    4
3    ::    ::    ::    :: 3
2 WP WP WP WP WP WP WP WP 2
1 WR WN WB WQ WK WB WN WR 1
  A  B  C  D  E  F  G  H

3  PLAYER  SARGON
   ------  ------
 1 E2-E4

  A  B  C  D  E  F  G  H
8 BR BN BB BQ BK BB BN BR 8
7 BP BP BP BP BP BP BP BP 7
6 ::    ::    ::    ::    6
5    ::    ::    ::    :: 5
4 ::    ::    WP    ::    4
3    ::    ::    ::    :: 3
2 WP WP WP WP :: WP WP WP 2
1 WR WN WB WQ WK WB WN WR 1
  A  B  C  D  E  F  G  H

- MICRO80.COM. Microchess. It is not 1.0, probably some 1.x version. I has three difficulty levels. Seems to know a few book moves, it doesn't bring out the queen in move 2 like version 1.0 does. Moves are entered with Microchess octal notation, so you will need a suitable manual to work this one out. I recommend http://s3data.computerhistory.org/chess ... 302029.pdf. I have also come over an ASM source code listing for something that looks like this, but have not yet determined if it's this very version. We'll see how dirty I want to get my fingers with CP/M and compiling stuff from source.

Code: Select all

MICROCHESS                  (C) 1977.
WRITTEN BY: P. JENNINGS & T. O'BRIEN.
-------------------------------------

DO YOU WANT WHITE ? (Y,N) Y

     0  1  2  3  4  5  6  7
  +------ MICROCHESS -------+
0 ! BR BN BB BQ BK BB BN BR !
1 ! BP BP BP BP BP BP BP BP !
2 !    ::    ::    ::    :: !
3 ! ::    ::    ::    ::    !
4 !    ::    ::    ::    :: !
5 ! ::    ::    ::    ::    !
6 ! WP WP WP WP WP WP WP WP !
7 ! WR WN WB WQ WK WB WN WR !
  +------ CHALLENGER -------+


:    64-44


     0  1  2  3  4  5  6  7
  +------ MICROCHESS -------+
0 ! BR BN BB BQ BK BB BN BR !
1 ! BP BP BP BP BP BP BP BP !
2 !    ::    ::    ::    :: !
3 ! ::    ::    ::    ::    !
4 !    ::    :: WP ::    :: !
5 ! ::    ::    ::    ::    !
6 ! WP WP WP WP    WP WP WP !
7 ! WR WN WB WQ WK WB WN WR !
  +------ CHALLENGER -------+

MC : 14-34
- MYCHESS.COM and MYCHESSN.COM. One build from 1979, and 2.3 from 1983. Both seem to play different compared to the DOS version from 1984.

Code: Select all

                 ***  MYCHESS PROGRAM  ***

                WRITTEN BY: DAVID KITTINGER
                      COPYRIGHT 1979

STANDARD ALGEBRAIC NOTATION IS USED-IE SQUARE FROM SQUARE TO.
EXAMPLE  P-K4  IS ENTERED AS "E2-E4",THE QUOTES ARE NOT TYPED!!
        SPECIAL MOVES:
CASTLES KING SIDE  "O-O"  (NOTE:  LETTER O IS USED!!)
PROMOTE PAWN-EXAMPLE  KING PAWN TO QUEEN-"E7-E8=Q"
(N
                SEND MOVES TO PRINTER? N

                WHO AM I PLAYING? >>  BEN

                TIME CONTROLS?  Y=YES N

                HOW MANY PLIES OF LOOK AHEAD?  (1-9) 4

                DISPLAY BEST VARIATION? Y

                DO YOU WANT WHITE? >>  Y



                 MYCHESS
     AA  BB  CC  DD  EE  FF  GG  HH
  +----------------------------------+
8 |  BR  BN  BB  BQ  BK  BB  BN  BR  | 8
  |                                  |
7 |  BP  BP  BP  BP  BP  BP  BP  BP  | 7
  |                                  |
6 |      ::      ::      ::      ::  | 6
  |                                  |
5 |  ::      ::      ::      ::      | 5
  |                                  |
4 |      ::      ::      ::      ::  | 4
  |                                  |
3 |  ::      ::      ::      ::      | 3
  |                                  |
2 |  WP  WP  WP  WP  WP  WP  WP  WP  | 2
  |                                  |
1 |  WR  WN  WB  WQ  WK  WB  WN  WR  | 1
  +----------------------------------+
     AA  BB  CC  DD  EE  FF  GG  HH
                  BEN

YOUR MOVE  01 E2-E4

Code: Select all

                       ***  MYCHESS 2.3 (3/28/83)  ***

                        WRITTEN BY: DAVID KITTINGER
                              COPYRIGHT 1979

                       Display (c) 1983 Walt Bilofsky
- And finally CHESS.COM, CHESS.DOC, CHESS.FOR. Mikes Chess Program by Jim Mills (?), not one I am really familiar with, but I am including it anyway. Includes fortran source code.

Code: Select all

MIKES CHESS PROGRAM


LEVEL 0 OR 1 ?0


COMPUTER TO PLAY WHITE (0) OR BLACK (1) ? 1



  YOUR MOVE:- e2-e4


  YOUR MOVE:- E2-E4



 1. MY MOVE:-
E7-E5
  YOUR MOVE:- G1-F3



 2. MY MOVE:-
G8-F6
  YOUR MOVE:- BOARD



           A  B  C  D  E  F  G  H
       8  BR BN BB BQ BK BB -- BR   8
       7  BP BP BP BP :: BP BP BP   7
       6  -- :: -- :: -- BN -- ::   6
       5  :: -- :: -- BP -- :: --   5
       4  -- :: -- :: WP :: -- ::   4
       3  :: -- :: -- :: WN :: --   3
       2  WP WP WP WP -- WP WP WP   2
       1  WR WN WB WQ WK WB :: WR   1
           A  B  C  D  E  F  G  H

  YOUR MOVE:-
Most of the programs prefer input to be in ALL CAPS.

For those unfamiliar with CP/M, it is basically the grandfather of MS-DOS. It was the operating system of choice for a number of 8-bit computers on the 70s and early 80s. When x86 PCs came around, Bill Gates bought an x86 CP/M clone called QDOS, relabeled it MS-DOS, and went on to conquer the world.

This journey originally started with me trying to find more info about some chess program that supposedly ran on Altair back in the day. Specifically, Ron Nelson supposedly made one around 1976. So I tried setting up some Altair action using SIMH, which has served me great for emulating other ancient platforms. I found plenty of sites around with documentation and disk images that allowed me to get CP/M running on it. And I also found a disk image that supposedly had some chess programs on it. But for some reason I was unable to get the darn thing mounted in SIMH. So I started looking around for alternatives, and found something called Z80pack, basically a pre-packaged distribution with CP/M for Z80. Using CPMtools I could also manipulate disk images, including the one I had already found, and could supplement it with executable COM chess programs I found digging around in various archives around the net. Z80pack basically gives me a full running CP/M environment, which is basically just like using DOS. Then I found RunCPM, and later the aforementioned cpm.exe, which simplifies the process of just running the COM files even further.

There's still a bit more digging to do. I have a couple of source code files and BASIC programs (yes, BASIC the programming language, not "basic" as in "simple") I might look into getting running. And I am also still on the lookout for the Ron Nelson program (I have found the manual http://www.classiccmp.org/dunfield/altair/d/chess.pdf). And as usual, suggestions and input from you guys is always appreciated :-)
Thank you for an interesting game.
TracySMiller
Full Member
Posts: 865
Joined: Sun Mar 13, 2016 2:24 am
Location: Kingsport, TN

Post by TracySMiller »

Thanks! You are awesome. I might match up these two Mychess programs against the 1984 DOS version.
User avatar
Fernando
Admiral of the Fleet
Posts: 3059
Joined: Tue Jul 31, 2007 4:35 pm
Location: Santiago de Chile

Post by Fernando »

This will look as incredible but I DID get the thing working........
Just wait and I will be capable of using the Iphone...

Fern
Festina Lente
User avatar
spacious_mind
Senior Member
Posts: 4001
Joined: Wed Aug 01, 2007 10:20 pm
Location: Alabama
Contact:

Post by spacious_mind »

Fernando wrote:This will look as incredible but I DID get the thing working........
Just wait and I will be capable of using the Iphone...

Fern
LOL....

@Ben,

Thanks for sharing this! Great Stuff....

Regards
Nick
User avatar
BenRedic
Member
Posts: 163
Joined: Mon Jan 09, 2017 11:29 am
Location: Norway

Post by BenRedic »

Just a couple of followups:

- The Ron Nelson program. I found this in the form of an NSI image file. But I was unable to run it in any of the emulators I had set up, as well as others I tried. Then I came over this site http://www.classiccmp.org/dunfield/altair/index.htm which included an Altair 8800 emulator with the program included. I did manage to get it running and play a game against it. Unfortunately, it is not just a COM file I can drop on the CPM emulator like the earlier ones I published, but it is still pretty straightforward to get running:

1) Download the emulator from http://www.classiccmp.org/dunfield/sim/altair.zip and unpack.
2) Run ALTAIR.COM. This is a DOS program. It should run without further ado in 32 bit Windows. If you are on 64 bit Windows you will need an additional layer of emulation, such as DOSBOX or an older version on Windows in VirtualBox.
3) You get a textmode DOS rendition of an Altair 8800 front panel. Press F7 to mount a disk, and select the disk called DMF.
4) Press "G" to boot the machine. After some seconds you will see "DMF-80/ST 1.0" on the screen. At this point, type "CHESS", press enter, and you're going. See link in my previous post for manual.

- BASIC programs: I found a couple of these. One of them I got running in MBASIC under CP/M. The program can be found at http://altairclone.com/downloads/basic/ ... /chess.bas. Unfortunately I was unsuccessful actually playing against it. There's no documentation, but from the source code I worked out that the moves are entered using an octal representation similiar to early Microchess and the aforementioned Ron Nelson program, but using reversed values for X and Y. However, as soon as I enter a valid move, the program thinks for a second but then breaks with an error:

Code: Select all

         **** CHESS ****
DO YOU WANT TO BE WHITE OR BLACK? w
 4  2  3  5  6  3  2  4 
 1  1  1  1  1  1  1  1 
 0  0  0  0  0  0  0  0 
 0  0  0  0  0  0  0  0 
 0  0  0  0  0  0  0  0 
 0  0  0  0  0  0  0  0 
-1 -1 -1 -1 -1 -1 -1 -1 
-4 -2 -3 -5 -6 -3 -2 -4 
YOUR MOVE? 57,47
YOU CAN'T DO THAT.
YOUR MOVE? 57,56
ACCEPTED.


NUMBER OF POSSIBLE MOVES FOR COMPUTER 20 

FROM TO  BOARD VALUE
FOR Without NEXT in 1800
- I found another BASIC program here http://www.z80.eu/downloads/chess1bas.zip. Couldn't get it running in CP/M. But I did recognize some of the text in the print statements, and remembered that I had played with this program before under MS-DOS. The program I found here: https://www.myabandonware.com/game/chess-1q2. It plays weak, and makes illegal moves, but hey, it's chess in BASIC.

- One more thing: After looking more at the Microchess version in my previous post, I have found that this looks and plays excactly like Microchess for the SOL-20. The SOL-20 version of Microchess, along with a suitable emulator, can be downloaded from http://www.sol20.org/. The same site also includes Processor Technology 8080 Chess, which was the first micro computer program to compete with the big guys in the ACM tournaments in the 70s. 8080 Chess also comes with a suprisingly well written and funny (!) manual, which is worth a look.
Thank you for an interesting game.
User avatar
Fernando
Admiral of the Fleet
Posts: 3059
Joined: Tue Jul 31, 2007 4:35 pm
Location: Santiago de Chile

Post by Fernando »

What Nelson program -or similar to one- you believe it is?

Fern
Festina Lente
TracySMiller
Full Member
Posts: 865
Joined: Sun Mar 13, 2016 2:24 am
Location: Kingsport, TN

Post by TracySMiller »

So I played a quick game of the Mychess (1979) against Excalibur Ivan, since I have Ivan out because of the match I'm currently running. Set Mychess on Level 5 (supposedly 5 ply), which seemed to average about 30 seconds/move on my PC, which is an i7 processor @ 2.92 Ghz (although there were wild variances on the actual time it took). Ivan at 30 sec/move average.

Mychess crushed Ivan. Attacked its uncastled King and made Ivan give up its Queen for a Rook, then proceeded to mop up nicely. I know it's just one game, but it surprised me.
TracySMiller
Full Member
Posts: 865
Joined: Sun Mar 13, 2016 2:24 am
Location: Kingsport, TN

Post by TracySMiller »

BenRedic wrote: - I found another BASIC program here http://www.z80.eu/downloads/chess1bas.zip. Couldn't get it running in CP/M. But I did recognize some of the text in the print statements, and remembered that I had played with this program before under MS-DOS. The program I found here: https://www.myabandonware.com/game/chess-1q2. It plays weak, and makes illegal moves, but hey, it's chess in BASIC.
Yeah, I remember trying to play this one a while back. I noticed the same thing you did: when it was in trouble, it would make a crazy, illegal King move, like moving to the other side of the board. I started to think maybe it was a new version of chess, in which the King has a teleportation power it can use once/game. :-)
User avatar
BenRedic
Member
Posts: 163
Joined: Mon Jan 09, 2017 11:29 am
Location: Norway

Post by BenRedic »

Fernando wrote:What Nelson program -or similar to one- you believe it is?
My understanding was that it was basically the same program used for the first Chess Challenger computers. This from what I read, as well as the fact that both the time period and the hardware matches. I could, of course, be wrong. I am by no means an authority on Ron Nelson and his works.
Thank you for an interesting game.
User avatar
Fernando
Admiral of the Fleet
Posts: 3059
Joined: Tue Jul 31, 2007 4:35 pm
Location: Santiago de Chile

Post by Fernando »

BenRedic wrote:
Fernando wrote:What Nelson program -or similar to one- you believe it is?
My understanding was that it was basically the same program used for the first Chess Challenger computers. This from what I read, as well as the fact that both the time period and the hardware matches. I could, of course, be wrong. I am by no means an authority on Ron Nelson and his works.
If it is so, then this program make illegal moves and things like that...
Festina Lente
User avatar
Bryan Whitby
Senior Member
Posts: 1003
Joined: Wed Feb 18, 2009 9:57 pm
Location: England

Post by Bryan Whitby »

BenRedic wrote:
Fernando wrote:What Nelson program -or similar to one- you believe it is?
My understanding was that it was basically the same program used for the first Chess Challenger computers. This from what I read, as well as the fact that both the time period and the hardware matches. I could, of course, be wrong. I am by no means an authority on Ron Nelson and his works.
Ben

I'm a little puzzled like Fern as to what you are saying.

The first Chess Challenger was as you correctly said, contained Ron Nelson's program but Sargon is Dan & Kathe Spracklen's creation.

Are you saying that there is actually a Chess Challenger chess program by Nelson that runs on some kind of computer hardware besides the Fidelity chess computers?

Regards
Bryan
User avatar
BenRedic
Member
Posts: 163
Joined: Mon Jan 09, 2017 11:29 am
Location: Norway

Post by BenRedic »

Chessmaster Ireland wrote: I'm a little puzzled like Fern as to what you are saying.

The first Chess Challenger was as you correctly said, contained Ron Nelson's program but Sargon is Dan & Kathe Spracklen's creation.

Are you saying that there is actually a Chess Challenger chess program by Nelson that runs on some kind of computer hardware besides the Fidelity chess computers?
Did I misunderstand the question? I talked about the program Ron Nelson designed for the Altair. Fern asked about which program this was similar to. I replied that I thought this was about the same that would be in the CC, i.e. the first one. I never mentioned anything about Spracklen or Sargon.

My point of reference is basically this from https://chessprogramming.wikispaces.com ... Challenger:
Fidelity Chess Challenger, was a series of dedicated chess computers produced and market by Fidelity Electronics. The Chess Challenger 1 was the first commercial chess computer of its kind in 1976, invented by Sidney Samole, with a program by Ron Nelson, developed for an Altair 8800 Microcomputer with an Intel 8080 CPU.
I have no first hand experience with CC1, and I do not believe I know anything about it making illegal moves. Is this the case? Do you know more about this, i.e. what kind of situations it makes illegal moves etc? The only thing I have seen is that the notation on the very first models was the wrong way around, but this was corrected on later production runs.

The closest thing I have been to CC1 is CC10 through emulation (MESS), without noticing any funny moves. I have not played that much with the Altair program yet, just a couple of blitz games on level 1, which I beat handily, but have not seen any illegal moves as of yet.
Thank you for an interesting game.
User avatar
Bryan Whitby
Senior Member
Posts: 1003
Joined: Wed Feb 18, 2009 9:57 pm
Location: England

Post by Bryan Whitby »

Hi Ben

Sorry about that.

Do you want me to ask Ron anything about it as I still occasionally keep in touch with him.

Regards
Bryan
User avatar
BenRedic
Member
Posts: 163
Joined: Mon Jan 09, 2017 11:29 am
Location: Norway

Post by BenRedic »

Chessmaster Ireland wrote:Do you want me to ask Ron anything about it as I still occasionally keep in touch with him.
If so, that would be great :-)

To be fair, neither the program or the manual explicitly credits Ron. So I could be just way off, maybe because I found sources citing that Ron made a program for the Altair and this particular program was the only "proper" chess program I have actually found on the Altair, excluding BASIC programs.

Digging around I have found a site (in german) that describes CC1 (and CC3) as not understanding all the rules, such as castling and en passant. In my testing the Altair program handles castling just fine, and according to the manual it should handle en passant as well. So, I guess it's not CC1 then. Maybe not even Ron Nelson, I don't really know.

The program states "CHESS BY SOFTWARE SPECIALISTS - COPYRIGHT 1978". The manual calls it CHESS MASTER (C) DYNACOMP. The manual matches the program; The program behaviour matches the manual perfectly (play levels, notation etc).
Thank you for an interesting game.
mychess
Member
Posts: 96
Joined: Tue Jul 31, 2007 8:55 pm

Post by mychess »

Hi all,


In Byte of October 1978, page 196, there is an advertising from Software Specialists about this chess program ($35, $50 with presetting the board, 8Ko, with castling, en passant and promotion).
Another link : http://mocagh.org/miscgame/dynacomp-80catalog.pdf

Cordialy.


Mychess
Post Reply