Refactor game end detection
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 12 Jan 2019 17:48:31 +0000 (18:48 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 12 Jan 2019 17:48:31 +0000 (18:48 +0100)
commit0ae9d6de3ae1337a831511d7dadeeebd01eada2a
tree31e540e1084f54b71f67f3e8bd4c8f7d08d1162e
parent5a46158e0098d1b46769a079354e7703fdd13738
Refactor game end detection

Support customization of n-fold repetition and n-move rule.
- Fix fourfold rule for minishogi and other shogi variants.
- Adjust n-move rule to 70 for shatranj.
- Disable n-move rule for makruk and shogi variants.
src/evaluate.cpp
src/movegen.cpp
src/position.cpp
src/position.h
src/search.cpp
src/variant.cpp
src/variant.h