Crafty v24.0

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Crafty v24.0

Post by Norbert Raimund Leisner »

Hello,

http://www.kikrtech.com/ contains two x64 versions of Crafty 24.0,
but no win32 edition. The source code seems to be still from v23.8.

Any comments?

Best wishes,
Norbert
Modern Times
Posts: 3546
Joined: Thu Jun 07, 2012 11:02 pm

Re: Crafty v24.0

Post by Modern Times »

Norbert Raimund Leisner wrote:
Any comments?

Norbert
Yes. Neither of the exes in that package run on my AMD Phenom II X6. Previous Crafty versions have been fine.
Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Re: Crafty v24.0

Post by Norbert Raimund Leisner »

Can anybody of you build functioning Windows binaries for 32/64 bit-systems of Crafty 24.0 source code, please?

URL ~ http://www.cis.uab.edu/hyatt/crafty/source/

Norbert
Modern Times
Posts: 3546
Joined: Thu Jun 07, 2012 11:02 pm

Re: Crafty v24.0

Post by Modern Times »

Peter Skinner is onto it, see the thread in the programming section.
Jamal Bubker
Posts: 326
Joined: Mon May 24, 2010 4:32 pm

Re: Crafty v24.0

Post by Jamal Bubker »

Thanks Norbert for reporting this new release and Thanks to Bob for having worked on this new release 8-)
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Crafty v24.0

Post by cdani »

Hi!

Norbert asked me to create a 32 bit compile of Crafty 24. Here it is:

http://www.andscacs.com/crafty24_32bits.rar

And here the vc++ solution I used to compile it:

http://www.andscacs.com/crafty24sln_32bits.rar

I have no big experience on compiling or optimizing, so sure can be improved.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty v24.0

Post by bob »

cdani wrote:Hi!

Norbert asked me to create a 32 bit compile of Crafty 24. Here it is:

http://www.andscacs.com/crafty24_32bits.rar

And here the vc++ solution I used to compile it:

http://www.andscacs.com/crafty24sln_32bits.rar

I have no big experience on compiling or optimizing, so sure can be improved.
Did you have to make any source changes? Peter was having trouble getting a 32 bit compile without errors, yet 64 bit compiled as cleanly as always...
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Crafty v24.0

Post by cdani »

bob wrote: Did you have to make any source changes? Peter was having trouble getting a 32 bit compile without errors, yet 64 bit compiled as cleanly as always...
I put the list here. May be some of them are not necessary of can be tweaked in a nicer way, but I don't know other way of doing them.

*#ifndef and #define on every top of .h

* modify two things on lock.h:

Code: Select all

extern void Pause();

Code: Select all

//#    include <windows.h>
#include <intrin.h>
#    pragma intrinsic (_InterlockedExchange&#41;
* create lock.c :

Code: Select all

#include "lock.h"

void Pause&#40;) &#123;
&#125;
* #include "meu.h" on every top of .h. Unnecessary if you compile from commandline and add a couple of /d.

* meu.h:
#ifndef MEU_INCLUDED
# define MEU_INCLUDED
#define WIN32
#define _DEBUG
#define _CONSOLE
#define NT_i386
#define CPUS 4
#endif

* Added standard inittypes.h. When compiling it said that don't found it.

I think that's all.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Crafty v24.0

Post by cdani »

And also I commented all the includes in crafty.c.
It's a bit rudimentary but it's the first way I found that it compiles.

Anyway the modified code it's in the solution file I linked.
Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Re: Crafty v24.0

Post by Norbert Raimund Leisner »

Hello Dani,

I had the intention to make a 40/20 min-match between Andscacs 0.64-32 and Crafty 24.0 win32 under WinBoard-GUI 4.7.3a
http://www.open-aurec.com/wbforum/viewt ... 19&t=51528

Both engines can be embedded into this interface of course, but before Crafty 24.0 executes its first move, a Windows XP message is visible:

crafty 24.exe-error in application

The command in "0x0045747b" allocates to the storage in "0x92c40be0". The procedure "read" could not be executed from the storage"

Click on "OK", to finish the program.


Astonishing:

Just a double mouse-click on the Crafty 24.0 executable file shows normally a window with an inscript like other Crafty versions before:
unable to open book file [books\bin]
book is disabled
unable to open book file [books\bin]
Initializing multiple threads
System is SMP, not NUMA
Crafty v24.0 <1 cpus>
White <1> _

Best wishes,
Norbert