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 21:38:05 +0000 (23:38 +0200)
commitaf3424fe63ecdacb724b164021c23c4357bf19b4
tree3441b8242b45e6406416145811f84c432306d52c
parent1a2a65557b5e82cb3649db9328efd0ff0d5e9b74
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.
draw.c