585
edits
Changes
Perft
,→Perft function with pseudo move generator
To generate legal moves some programs have to make moves first, call the function IsIncheck and then undo those moves. That makes the above Perft function to make and undo moves twice for all moves. Bellow code can avoid that problem and run much faster:
<pre>
u64 Perft(int depth)
{
<span id="Bulk"></span>
==Hashing==