Polyglot 1.4w Released

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

Moderators: hgm, Rebel, chrisw

User avatar
Arturo Ochoa
Posts: 220
Joined: Wed Mar 08, 2006 9:27 pm
Location: Montréal, Canada

Re: Polyglot 1.4w Released -Maybe you should include this...

Post by Arturo Ochoa »

F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: Polyglot 1.4w Released -Maybe you should include this...

Post by F. Bluemers »

Yes,I'll put it on my site too soon. Or put up a link.
I'll leave my old version on the site too,just in case someone still needs it.
Best
Fonzy
User avatar
Arturo Ochoa
Posts: 220
Joined: Wed Mar 08, 2006 9:27 pm
Location: Montréal, Canada

Re: Polyglot 1.4w Released -Maybe you should include this...

Post by Arturo Ochoa »

F. Bluemers wrote:
Yes,I'll put it on my site too soon. Or put up a link.
I'll leave my old version on the site too,just in case someone still needs it.
Best
Fonzy
Hello:

Of course, you must be in the know of the options included by Jaap Weidemann. Anyway, I found his last release in the Winboard Forum. It includes interesting options to create books with elo filter:

:idea: http://www.open-aurec.com/wbforum/viewtopic.php?t=49659

:arrow: Direct link from that thread http://www.mediafire.com/?mzytiyniyzj

Thank you for your useful work in improving polyglot....

Best wishes. A8A.
bnemias
Posts: 373
Joined: Thu Aug 14, 2008 3:21 am
Location: Albuquerque, NM

Re: Polyglot 1.4w10 Released

Post by bnemias »

F. Bluemers wrote:Hi Bob
Thanks for the bugreport.I'll fix 'adapter.ccp'

As for microsoft:
I compiled pg with vc c++ 2005 express.
No problems printing pv strings.
I did some testing with all the Microsoft compilers I have access to.

VS2005: appeared to work properly with or without the proposed fix

VS2003, VS2002, VC++ 6.0: proposed fix required to work properly

VC++ 4.x and lower: didn't compile either way. heh.
F. Bluemers wrote:I tested the compiled exe under windows 98se with virtual pc and it seems to works well.
Thanks for the effort. But this problem should be evident immediately on the same OS it was compiled on. I'm sorry I didn't make that clear.
bnemias
Posts: 373
Joined: Thu Aug 14, 2008 3:21 am
Location: Albuquerque, NM

Re: Polyglot 1.4w10 Released

Post by bnemias »

I tested some more compilers and found out that to make this build properly, you have to do two things:

1) re-enable S64_FORMAT in adapter.cpp as discussed previously.
2) force S64_FORMAT to "%I64d" for most compilers targeting windows.

For 2), this means replacing line 30 in util.h from:

Code: Select all

#ifdef _MSC_VER
to:

Code: Select all

#if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32) || defined(WINDOWS)
That allowed me to produce a working EXE for all the Microsoft compilers, plus an older version of ming I had, and current ones used by dev-cpp. I assume you also want S64_FORMAT to be "%I64d" for intel compilers, but unfortunately, I can't test that as I have none.
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: Polyglot 1.4w10 Released

Post by F. Bluemers »

Hi Bob
Code:
#if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32) || defined(WINDOWS)
No exceptions allowed eh? :wink:
So its true then,Microsoft needs one with a hammer on its head :lol:
Thanks for the good work

Best
Fonzy
bnemias
Posts: 373
Joined: Thu Aug 14, 2008 3:21 am
Location: Albuquerque, NM

Re: Polyglot 1.4w10 Released

Post by bnemias »

F. Bluemers wrote:Hi Bob
Code:
#if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32) || defined(WINDOWS)
No exceptions allowed eh?
I suspect, and my first google search hit sorta confirmed this, that the common element here is linking with msvcrt, which apparently VS2005 doesn't do anymore by default. If that's what's really the case here, then of course to be correct, the preprocessor should test for exactly that, if possible. I don't know how though. But since the method VS2005 uses appears to work either way, using "%I64d" for any windows build seems an acceptable solution.
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: Polyglot 1.4w11 Released

Post by F. Bluemers »

Polyglot 1.4w11 Released
Main contributions are from Eric Mullins.
Fixing pv output when compiled with older ms compilers
added EngineNice option
added ScoreWhite
added PostDelay
Best
Fonzy
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot 1.4w11 Released

Post by hgm »

Is this now the same version as 1.4w10UCIb13, or a direct successor of it, or are we forking?
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: Polyglot 1.4w11 Released

Post by F. Bluemers »

hgm wrote:Is this now the same version as 1.4w10UCIb13, or a direct successor of it, or are we forking?
This is a successor to 1.4w10,the changes are relative small.
It should be easy to merge with 1.4w10UCIbxx
Best
Fonzy