Refactor ApplyMove
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 29 May 2020 18:02:51 +0000 (20:02 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 31 May 2020 11:30:55 +0000 (13:30 +0200)
commit27f215f683a026292c7d39676a2e92f2bee3bfed
tree5c85a8b4c5241b26246ef09f6e61f39c61cca10e
parente2d0290abb13270cee39783b764907e4bcd97e93
Refactor ApplyMove

Almost all the cases in the large if-then-else sequence for the various
special moves examined the from-square and the set it to empty.
While a copy of the from-square was already in the variable 'piece'.
We now moved setting piece to the very beginning of the handling of
non-drop moves, and clear the from-square immediately after that,
instead of all the cases separately.
backend.c