Changes

Jump to: navigation, search

Perft

21 bytes added, 22:48, 9 February 2021
Pseudo Legal Moves
==Pseudo Legal Moves==
To generate legal moves some programs have to make moves first, call a function to check if the function IsIncheck position incheck and then undo those moves. That makes the above Perft function to make and undo moves twice for all moves. Below code can avoid that problem and run much faster:
<pre>
u64 Perft(int depth)

Navigation menu