Page 1 of 1

Compiling Tom Simple Chess Program

PostPosted: 27 Nov 2004, 18:07
by Ulysses Omycron
Hi, I downloaded the source code from http://home.comcast.net/~tckerrigan/ and am using ICC-WIN32 compiler, but I tryed to compile each file separatedly (Book, Board, Data, Eval, Main, and Search.C), but it doesn't work (Some errors on protos.h and Undefined References).

I think I need a file like tscp.c or so, pointing out the other files, but don't know how to get it/make it, thanks for your help in advance.

I like to create my own chess program but haven't find the right help to do it, web pages only say "Create a 64bit array" and so, but don't say where, what program to download nor anything of that sort, so I might begin editting TSCP until I find another way.

I hope someone help me this time.

Re: Compiling Tom Simple Chess Program

PostPosted: 27 Nov 2004, 19:34
by Jim Ablett
1. Download Devc++ and install
http://www.bloodshed.net/devcpp.html

2. Copy TSCP folder containing all source code to Examples folder
in c:\devcpp\examples

3. Choose new project > console application > c project
Save project file as TSCP.dev

4. Highlight main.c and remove file (default one from bar on far left)

5. You should now just have the entry TSCP - right-click it > choose Add to project.

6. Locate TSCP source files in examples folder > highlight just .c files > add to project.

7. double-click main.c > bring it up in main code viewing area

8. From menu bar - Execute > compile

Re: Compiling Tom Simple Chess Program

PostPosted: 28 Nov 2004, 00:27
by Ulysses Omycron
Thank you so much Jim! After following your instructions I have TSCP already running! (The Version with the Bitboard Move Generator didn't compile, it showed some errors here and there, but who cares about Bitboards! :)).

I just have some last questions:

Suppose that after change several code I make the program 500 points ELO higher (I'm pretty optimistic), what do I do with this new file??Call it just TSCP182 to release to the public; keep it personal or change the whole name giving credits to Tom?

And what if I add tons of code of my own and the program now is pretty different from the original?

Also, how do I release my TSCP versions and when (Say, do it just when the program is stronger than the original, and keep updating it, or release it at a later time when it gets even better) and where? Should it participate in tourneys? etc.

Thank you again if you're willing to help :)

Re: Compiling Tom Simple Chess Program

PostPosted: 28 Nov 2004, 06:51
by Pallav Nawani
Ulysses Omycron wrote:I just have some last questions:

Suppose that after change several code I make the program 500 points ELO higher (I'm pretty optimistic), what do I do with this new file??Call it just TSCP182 to release to the public; keep it personal or change the whole name giving credits to Tom?

And what if I add tons of code of my own and the program now is pretty different from the original?



Tom is the only one who can answer these questions. I strongly suggest that you clarify all this with tom before you start working on your program. This will avoid a lot of bad blood and pain later.

Best,
Pallav

Re: Compiling Tom Simple Chess Program

PostPosted: 28 Nov 2004, 08:16
by Jim Ablett
I would try to re-write/replace all the routines you can, and what's left, however small, you should ask Tom or whoever wrote the code for permission to use and always be up front about what you are doing - If your program is a clone, say so, nobody will mind if you have permission and it's a big improvement, just don't be an imposter - look at Tom's 'Hall Of Shame' for reference.

Jim.

Re: Compiling Tom Simple Chess Program

PostPosted: 28 Nov 2004, 08:46
by Jim Ablett
TSCP-bitboard version compiles ok (with some warnings) using another great free C/C++ compiler/IDE Open Watcom >
http://www.openwatcom.org/

Just remember to turn on Ansi compliance first.

options > c compiler switches > diagnostic switches >
Tick box > force ansi compliance.

Jim

Re: Compiling Tom Simple Chess Program

PostPosted: 28 Nov 2004, 09:14
by Jim Ablett
Another software development route.
I think I'm right in saying that if you can find chess engines with source code released under the gnu public licence (preferably which are desperately crying out to be updated and on which development has stalled), you are free to modify/enhance to as long as you include the original source code and modifications in your distribution.

Jim.

Re: Compiling Tom Simple Chess Program

PostPosted: 29 Nov 2004, 03:17
by Ulysses Omycron
I stoped working with TSCP, first, even though it draws against Ruffian 1.0.1, it loses against everything else (Even Olithink's first version!), and it needs lots of work to make it knowledge King Safety, and needs lots of extensions (Some programs know that are going to mate it in ply 3, while TSCP needs about 9 plies and x6 time to know... That it's being mated). Aside from being weaker, the problems of having to ask for permission and stuff, for a low quality program (That was made only for educational purposes and not to be used my way!) it's not worth it. So I will keep editing the code just for fun, and even if it becomes 1000 ELO points stronger, I will keep it private (Or begin to consider asking for permission!)

I may find a GNU Public Licence source code like Jim suggested.

Thanks to everybody for their help!