
Lecture d'un livre d'ouvertures au format Polyglot.

Conversion en Pascal de deux programmes de Michel Van den Bergh.
http://hardy.uhasselt.be/Toga/book_format.html

Le programme pg_key.pas calcule la clé correspondant à une position donnée.

Le programme pg_show.pas lit un livre et affiche les coups correspondant à une clé donnée.

C:\Roland\pascal\echecs\c\polyglot>pg_key "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
463B96181691FC9C

C:\Roland\pascal\echecs\c\polyglot>pg_show fruit.bin 463B96181691FC9C
move=d2d4 weight=41,46%
move=e2e4 weight=40,62%
move=g1f3 weight=10,00%
move=c2c4 weight= 7,33%
move=g2g3 weight= 0,29%
move=b2b3 weight= 0,18%
move=f2f4 weight= 0,07%
move=b1c3 weight= 0,01%
move=b2b4 weight= 0,01%
move=c2c3 weight= 0,01%
move=d2d3 weight= 0,01%

C:\Roland\pascal\echecs\c\polyglot>pg_show gm2001.bin 463B96181691FC9C
move=e2e4 weight=42,20%
move=d2d4 weight=41,90%
move=g1f3 weight= 8,67%
move=c2c4 weight= 6,65%
move=g2g3 weight= 0,41%
move=b2b3 weight= 0,13%
move=b1c3 weight= 0,02%
move=f2f4 weight= 0,01%
