Chess - Programming - Move Ordering

Endeavour to search the best move first.

Moves like promotions and captures are far more likely to be good moves than putting a rook en-prise, or advancing the pawns protecting the king.

A basic move ordering scheme might look as follows:

If the opponent is trying out a move that places a piece en-prise, then frequently the best move is to capture the piece, gaining material for nothing.

It should be noted that the hash move and PV move will sometimes coincide, so care should be taken not to search the same move twice.

Try to improve the move ordering further by breaking down the captures category.

Some captures are better than others;

Use the common MVV/LVA scheme for ordering captures, where MVV/LVA stands for Most Valuable Victim / Least Valuable Attacker.

Another method of improving move ordering, this time for quiet moves, is to reuse the piece-square tables.

Move ordering will not always be correct.


Class MoveOrdering


Most Valuable Victim/Least Valuable Attacker (MVV/LVA)

Static Exchange Evaluation (SEE)






References

https://www.ics.uci.edu/~eppstein/180a/970424.html