how to implement tablebases code?
Posted: 09 Dec 2004, 17:38
I think to implement tablebases in movei
I know that heiner posted the following code in
http://chessprogramming.org/cccsearch/c ... _id=192968
I also remember that Dieter said that it took him only few hours to implement tablebases from that code but the problem is that I do not understand it because I do not see step by step instructions in that post.
My question is what is the first step from that post to implement tablebases.
I guess that the first step is to copy and past some code but the question is what code exactly to copy and paste.
Note also that I do not understand the meaning of the functions that are described in that post because it is not clear to me if the function SqFindKing finds the white king or the black king and what is the reason that it needs to get a pointer.
I see no clear instructions in that post like:
1)copy code 1 and save it as egtbembed.cpp
2)copy code 2 and save is as egtbdefs.h
3)copy code 3 and save it as bastyp.h
4)copy code 4 and save it as basdef.h
5)copy code 5 and save it as lcltyp.h
6)copy code 6 and save it as tbindex.cpp
7)copy code 7 and save it as tbdecode.h
8)copy code 8 and save is as egtbembed.h
9)copy code 9 and save it as egtbif.c
10)copy code 10 and save it as egtbif.h
11)implement the following functions(of course I need explanation to understand the exact meaning of the functions and I have no problem to find the square of the white king when 0=a1, 1=b1 ... 63=h8)
a)SqFindKing (square *)
b)SqFindFirst (square *, piece),
c)SqFindSecond (square *, piece),
d)SqFindThird (square *, piece)
...
Uri
I know that heiner posted the following code in
http://chessprogramming.org/cccsearch/c ... _id=192968
I also remember that Dieter said that it took him only few hours to implement tablebases from that code but the problem is that I do not understand it because I do not see step by step instructions in that post.
My question is what is the first step from that post to implement tablebases.
I guess that the first step is to copy and past some code but the question is what code exactly to copy and paste.
Note also that I do not understand the meaning of the functions that are described in that post because it is not clear to me if the function SqFindKing finds the white king or the black king and what is the reason that it needs to get a pointer.
I see no clear instructions in that post like:
1)copy code 1 and save it as egtbembed.cpp
2)copy code 2 and save is as egtbdefs.h
3)copy code 3 and save it as bastyp.h
4)copy code 4 and save it as basdef.h
5)copy code 5 and save it as lcltyp.h
6)copy code 6 and save it as tbindex.cpp
7)copy code 7 and save it as tbdecode.h
8)copy code 8 and save is as egtbembed.h
9)copy code 9 and save it as egtbif.c
10)copy code 10 and save it as egtbif.h
11)implement the following functions(of course I need explanation to understand the exact meaning of the functions and I have no problem to find the square of the white king when 0=a1, 1=b1 ... 63=h8)
a)SqFindKing (square *)
b)SqFindFirst (square *, piece),
c)SqFindSecond (square *, piece),
d)SqFindThird (square *, piece)
...
Uri