Thread: openings
View Single Post
  #8   Report Post  
Old April 19th 04, 12:09 PM
Tommy
 
Posts: n/a
Default openings


"Noah Roberts" wrote
[i]
Simply change it to:
FEN - moveA score, moveB score, moveC score

Then when you win/lose/draw you have kept track of what book moves you
made and adjust the score for those moves. You then randomly choose a
move but weigh by score.

num = rand() % sum_of_all_scores;
i = 0;
while (n moves[i].score) { i++; n -= moves[i].score; }
bestmove = moves[i].move;
score = moves.score;


yeah, you are right!
Do you know how could I start building this file?
If I use my engine to build it I fear that the file will contain very poor
openings as my engine is still not very strong in the opening phase.

Tommy