The resolve_move_from already modifies the pre stack, so a simple length is enough.
(we want to grab the card which place is the first empty place after the move)
As for the post stack, we want to drop the card in the first empty place, which is
exactly the length of the array (since the index is zero based),
The
resolve_move_from
already modifies the pre stack, so a simplelength
is enough. (we want to grab the card which place is the first empty place after the move)As for the post stack, we want to drop the card in the first empty place, which is exactly the
length
of the array (since the index is zero based),