- // Take care to reverse the move in the no-progress case (opponent to move)
- if (empty(from))
- move = make_move(to, from);
+ // In the cuckoo table, both moves Rc1c5 and Rc5c1 are stored in the same
+ // location. We select the legal one by reversing the move variable if necessary.
+ if (empty(s1))
+ move = make_move(s2, s1);