Move generator
Posted: Sat Apr 12, 2008 7:25 am
Hi. Please find the source code for my move generator.
http://www.geocities.com/kongsian
Its uses magic bitboards and generates only legal moves.
Here are some perft results compared with QPerft from H.G.Muller. (No hashing, bulk counting at horizon nodes).
For the starting position:
./melee 7
Nodes: 3195901860
Time: 83356
./perft 7
Quick Perft by H.G. Muller
Perft mode: No hashing, bulk counting in horizon nodes
perft(7)=3195901860 (75.530 sec)
For the "KiwiPete" position
./melee 6 "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"
Nodes: 8031647685
Time: 159868
./perft 6 "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"
Quick Perft by H.G. Muller
Perft mode: No hashing, bulk counting in horizon nodes
perft(6)=8031647685 (212.320 sec)
Kong Sian
http://www.geocities.com/kongsian
Its uses magic bitboards and generates only legal moves.
Here are some perft results compared with QPerft from H.G.Muller. (No hashing, bulk counting at horizon nodes).
For the starting position:
./melee 7
Nodes: 3195901860
Time: 83356
./perft 7
Quick Perft by H.G. Muller
Perft mode: No hashing, bulk counting in horizon nodes
perft(7)=3195901860 (75.530 sec)
For the "KiwiPete" position
./melee 6 "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"
Nodes: 8031647685
Time: 159868
./perft 6 "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"
Quick Perft by H.G. Muller
Perft mode: No hashing, bulk counting in horizon nodes
perft(6)=8031647685 (212.320 sec)
Kong Sian