Chess Move Generator
In search algorithm, a good move ordering enables us to reduct size of search tree therefore search algorithm go deeper in the same time. An good chess move ordering schema can be:
- checking moves, direct and discovered,
- promotions,
- capturing moves (MVV/LVA),
- non-capturing moves (History hevristic).
The general idea of MVV/LVA is to first generate capture moves with the most valuable capture piece and least valuable attacker piece (e.g. pawn captures queen).