Moderator: Andres Valverde
Uri Blass wrote:Hi Reinhard,
At the time of writing this post I still do not understand what does util_init()of fruit doing.
void util_init() {
setvbuf(stdin,NULL,_IONBF,0);
setvbuf(stdout,NULL,_IONBF,0); // _IOLBF breaks on Windows!
}
Uri
Uri Blass wrote:Do you suggest that
setvbuf(stdout,NULL,_IONBF,0) can save the need for
fflush(stdout)?
Uri Blass wrote:Even if this is correct I still do not understand the need for
setvbuf(stdin,NULL,_IONBF,0);
Uri Blass wrote:I will give my estimate(it is only a fast estimate and I did not spend time in calculating by counting the number of lines that I understand
tscp 90%(I think that I understood all 1.73 but there was a newer version since then that I did not care to read)
Crafty 1%
Fruit 1%
Glaurung 2%
Olithink 2%
I decided to print all fruit's source code and I plan to try to understand it.
Uri
Uri Blass wrote:I will give my estimate(it is only a fast estimate and I did not spend time in calculating by counting the number of lines that I understand
tscp 90%(I think that I understood all 1.73 but there was a newer version since then that I did not care to read)
Crafty 1%
Fruit 1%
Glaurung 2%
Olithink 2%
I decided to print all fruit's source code and I plan to try to understand it.
Uri
Uri Blass wrote:I will give my estimate(it is only a fast estimate and I did not spend time in calculating by counting the number of lines that I understand
tscp 90%(I think that I understood all 1.73 but there was a newer version since then that I did not care to read)
Crafty 1%
Fruit 1%
Glaurung 2%
Olithink 2%
I decided to print all fruit's source code and I plan to try to understand it.
Uri
for (square=A1;square <=H8; ++square) Check_if_Pinned(square);
I will give my estimate(it is only a fast estimate and I did not spend time in calculating by counting the number of lines that I understand
tscp 90%(I think that I understood all 1.73 but there was a newer version since then that I did not care to read)
Crafty 1%
Fruit 1%
Glaurung 2%
Olithink 2%
I decided to print all fruit's source code and I plan to try to understand it.
Ross Boyd wrote:The parts I struggle with now are the pawn eval. BTW, the early versions used a similar pawn structure to TSCP!
Pallav Nawani wrote:IIRC, fabien once advised Tord to study AI/coding for other games such as go, othello. Maybe we should all take that advise.
Ross Boyd wrote:Fruit is a pleasure to read. Everything is well laid out and elegant. The parts I struggle with now are the pawn eval. BTW, the early versions used a similar pawn structure to TSCP!
Fabien Letouzey wrote:Pallav Nawani wrote:IIRC, fabien once advised Tord to study AI/coding for other games such as go, othello. Maybe we should all take that advise.
Hi Pallav,
This was an answer to a question regarding building endgame databases!!! I am sure you will agree the meaning is very different then ...
Fabien.
Read the pawn eval of older versions more carefully. It is much, much better than Tscp.
Return to Programming and Technical Discussions
Users browsing this forum: No registered users and 45 guests