i want to programming a simple game. please see these picures
"Jump over a token and capture the token. Every
move must be a jump! Only horizontal and vertical moves are allowed, no diagonal
movement in the game. The objective of the game is to capture all the tokens, except the
last piece. Figure on the left showing the player keys in the
“From” and “To” as D2 and D4 respectively. There
are several validations need to be performed here. D2
must be a token there and D4 must be an empty space.
D2 and D4 must be separated by a token to perform
the jump. Figure shows the update after second move, from F3
to D3. You could notice that every valid move is
either horizontal or vertical. Thus the “From” and
“To” must be either having the same x-axis or the
same y-axis. This is useful for performing validation."
help pleas :(
waiting for you