Simplify move encoding
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 30 Sep 2018 09:19:42 +0000 (11:19 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 7 Oct 2018 12:55:39 +0000 (14:55 +0200)
commit59b5e2d75ac0b1aba0aa721825a465f7481c8aa2
tree426d984102752c4787fcedf60c08ec23290557c4
parent90a8afaf98e0574937ed443592e7f770f3bcbb80
Simplify move encoding

Using 32 bits for move encoding, the encoding of promotions
can be simplified, which results in a 5-10% speed-up.

Tested in combination with previous commit.

STC
ELO: 21.39 +-10.0 (95%) LOS: 100.0%
Total: 2000 W: 491 L: 368 D: 1141
http://35.161.250.236:6543/tests/view/5bb096486e23db0fbab0ddf5

LTC
ELO: 14.95 +-9.3 (95%) LOS: 99.9%
Total: 2000 W: 420 L: 334 D: 1246
http://35.161.250.236:6543/tests/view/5bb112c56e23db0fbab0de0a

No functional change.
src/movegen.cpp
src/types.h