summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStephen Enders <smenders@gmail.com>2022-02-12 12:41:19 -0500
committerStephen Enders <smenders@gmail.com>2022-02-12 12:41:19 -0500
commit523f70eb9eddacd5f008e746a88c2fc4e4171697 (patch)
treeb1cc4acf2fff94ca921de928fe19861b07f255a4 /CMakeLists.txt
parent88c364d3bbcc5c3ea78abb7051c161eb87c00bb3 (diff)
Prevent piece capture on illegal move
You could capture a piece on a move that was shorter/longer than a valid placement. For example: if you rolled a 2 and there was an enemy piece 1 space away. You could place your token in space 1, remove the enemy piece, but your move wouldn't count as valid and you'd snap back to your original position. By placing the catpure method after the "in_place" we ensure we only remove the enemy piece if its fully valid.
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions