Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: NEW VERSION OF TSCP (1.5)

Author: Daniel Clausen

Date: 13:51:55 02/14/00

Go up one level in this thread


Hi

Tom was so kind to put the Mac-Binary on his website at
http://ucsu.Colorado.EDU/~kerrigat/

It should run an any PPC-based Mac. If it doesn't, drop me a mail and
don't bother Tom with it, cuz it's not his fault. :) He asked me in
email whether I made sure that get_ms() is working correctly.
With version 1.42 I posted on CCC how I did implement this function
under MacOS and noone complained it was wrong. Here it is again:


#include <time.h>
long get_ms()
{
	return clock() * 1000 / CLOCKS_PER_SEC;
}


Testgames against TSCP1.5 so far indicate that it's working quite
good. If you have a better solution or this one has a bug, please let
me know.



>Hmmm. I've never seen anything that says that main HAS to return an int,
>but I will change it back to int to make the compiler happy. =)

:-)

Yes it definitely has to return int. (also if you call exit()) Declaring it
as returning something else may result in a different function call/return
sequence. (Yes, there IS a platform under which "void main()" really fails
badly, but I don't know the platform atm)

Kind regards,
 -sargon



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.