Support virtual piece drops (#122)
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 4 Apr 2021 09:08:48 +0000 (11:08 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 4 Apr 2021 10:17:59 +0000 (12:17 +0200)
commit4a4ecccc31a10c3966f703fa62189de9dc17bbe0
tree80d1f6853d33c27a54c462304866bd06acde249e
parent751ddbc44797ced255052d5f205cfa6272cbd5fa
Support virtual piece drops (#122)

Support negative piece counts for bughouse,
and allow virtual piece drops under certain conditions.
This enables the engine to consider the effect of future piece flows,
which is required for more sophisticated communication and strategy.

This significantly improves performance against human opponents,
with only a moderate regression in self-play.
src/evaluate.cpp
src/movegen.cpp
src/movepick.cpp
src/partner.cpp
src/partner.h
src/position.cpp
src/position.h
src/search.cpp
src/thread.cpp
src/types.h