Moderator: Andres Valverde
Jim Ablett wrote:Compiled the latest source (0.21) with mingw32 and using latest (ppc) book.
Glaurung is now playing moves from the book, but they are illegal ones
right from the start.
g1f3 (+10305, =16488, -65535), 20%, n=92328, p=0.994860
b1c3 (+101, =114, -103), 49%, n=318, p=0.005140
044250>1:ucinewgame
6044250>1:isready
6044281<1:readyok
6044406>1:position startpos
6044406>1:go wtime 300000 btime 300000 winc 0 binc 0 movestogo 40
6044437<1:bestmove g1f3
6044437*1*Found move:Ng1-f3
6044671<1:bestmove 0000
6044671*1*---------> Arena:Illegal move! (0000 )
6044968********Game end: 1-0 {1-0 Arena Adjudication. Illegal move!}
Jim Ablett wrote:Not offline yet.
You're Welcome Tord.
It may be easier for you install the Devc++ ide which will automatically
install the latest GCC and mingw32 for you.
http://www.bloodshed.net/devcpp.html
#include <stdio.h>
int main(void) {
unsigned long long x;
int i;
for(i=0; i<64; i++) {
x = 1ULL << i;
printf("x = %llx\n", x);
}
return 0;
}
E:\WinBoard\Glaurung\src021\src>cl -Ox -o glaurung attacks.c board.c book.c data
.c endgame.c eval.c extend.c history.c init.c io.c main.c mersenne.c move.c move
gen.c order.c pick.c psq.c pstruct.c root.c safety.c search.c see.c strcase.c th
ink.c timeoday.c tt.c uci.c zobrist.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
attacks.c
glaurung.h(177) : warning C4005: 'max' : macro redefinition
D:\dev\MsVS\VC98\INCLUDE\windef.h(177) : see previous definition of 'max
'
glaurung.h(178) : warning C4005: 'min' : macro redefinition
D:\dev\MsVS\VC98\INCLUDE\windef.h(181) : see previous definition of 'min
'
glaurung.h(301) : error C2632: 'long' followed by 'long' is illegal
glaurung.h(302) : error C2632: 'long' followed by 'long' is illegal
board.c
glaurung.h(177) : warning C4005: 'max' : macro redefinition
D:\dev\MsVS\VC98\INCLUDE\windef.h(177) : see previous definition of 'max
'
glaurung.h(178) : warning C4005: 'min' : macro redefinition
D:\dev\MsVS\VC98\INCLUDE\windef.h(181) : see previous definition of 'min
'
glaurung.h(301) : error C2632: 'long' followed by 'long' is illegal
glaurung.h(302) : error C2632: 'long' followed by 'long' is illegal
timfoden wrote:As I thought 'long long' is not good with Microsoft's compiler.
GeoffW wrote:I just did a quick build of Glaurung for you using MS VS Ver 6. There were a few little moans by the MS VS compiler (let me know if you want me to email you the compiler output).
GeoffW wrote:Sounds like you need to take a break from trying to fix it today anyways.
Sometimes you come back to a problem like that after a day or two and the solution seems obvious.
It looks an odd problem, from the Arena debug it seems to pick a sensible opening white book move then instead of shutting up and letting black move it then wants to pick a second opening move
(bestmove 0000)
Fabien Letouzey wrote:Hi all,
First I haven't had the time to read this thread, so I don't know if the problem has been fixed or not already.
On Windows, opening files in binary mode is a must. "r" should be "rb". Otherwise the C lib will be busy converting 0D0A into 0A everywhere.
Its' a bug, but probably not the one you're looking for.
Fabien.
Return to Winboard and related Topics
Users browsing this forum: No registered users and 63 guests