]> git.sesse.net Git - stockfish/commit
Remove unreachable values in mobility table
authorMarco Costalba <mcostalba@gmail.com>
Sat, 7 Sep 2013 16:25:24 +0000 (18:25 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 7 Sep 2013 16:25:24 +0000 (18:25 +0200)
commit0515ad0fb0f2d46ee60288b0541cea495e6c90ef
tree1e274c832fd51f2ee8421d13c7bf2d48d1274d46
parentbf51db2526c2abf4f8d9297615aa933045c68e67
Remove unreachable values in mobility table

The possible maximum mobility cardinality (plus one in case of
zero squares available) is:

- Knights: max. 8  squares -> max. 9  entries
- Bishops: max. 13 squares -> max. 14 entries
- Rooks:   max. 14 squares -> max. 15 entries
- Queen:   max. 27 squares -> max. 28 entries

So remove the extra entries in the table.

Spotted by Dariusz Orzechowski.

No functional change.
src/evaluate.cpp