Implement King of the Hill as engine-supported variant
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 30 Sep 2014 20:18:32 +0000 (22:18 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 30 Sep 2014 20:38:44 +0000 (22:38 +0200)
commit25b177d809f72250a6ec78df11fb84ccff1fe4ad
tree13e7b628ef99aa6d4e3ab7e0ec5b006f1cf16779
parent2fb83e0335fabebfcb66dbaf9deeb4dabdebf4f8
Implement King of the Hill as engine-supported variant

The new winning condition is implemented as finding a royal of the stm
on the hill at the start of the turn. A global flag 'hill' enables this
test, and is set when the value of piece #3 is -2. (Kludgy!) The flag
centr[pieceType] is now used as a multiplier, which for 0, 1 amounts
to the same, but opens the possibility to up it before the search, for a
specific piece type. This is used in 'King of the Hill' to increase the
attraction of the King towards the center from 12 to 264cP when material
drops from Q+2minor (each) to nothing. (This was worth 100 Elo!)
The royal piece must be piece #3!
data/fmax.ini
fairymax.c