Page 1 of 3

Crafty v24.0

Posted: Wed May 28, 2014 6:20 am
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

Re: Crafty v24.0

Posted: Wed May 28, 2014 7:12 am
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.

Re: Crafty v24.0

Posted: Thu May 29, 2014 11:06 am
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

Re: Crafty v24.0

Posted: Thu May 29, 2014 11:28 am
by Modern Times
Peter Skinner is onto it, see the thread in the programming section.

Re: Crafty v24.0

Posted: Fri May 30, 2014 11:14 pm
by Jamal Bubker
Thanks Norbert for reporting this new release and Thanks to Bob for having worked on this new release 8-)

Re: Crafty v24.0

Posted: Thu Jun 12, 2014 12:07 am
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.

Re: Crafty v24.0

Posted: Thu Jun 12, 2014 3:33 am
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...

Re: Crafty v24.0

Posted: Thu Jun 12, 2014 7:36 am
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.

Re: Crafty v24.0

Posted: Thu Jun 12, 2014 8:48 am
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.

Re: Crafty v24.0

Posted: Thu Jun 12, 2014 11:19 am
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