ok the object here is pick the selected red peg and JUMP over the other red peg into the selected empty spot and remove the red red peg that was JUMPED over..
jumping can only be up, down, left and right - you cannot jump diagonal.. and you must select a red peg that can jump over another as well as pick an empty spot that the selected red peg can go into..
make a variable then assign the variable where the argument wanting the number of pixels of the jump. run a for loop to the variable in the direction x or you want the instance to jump to. That is what I think.
it needs to know what spots are open - (BLACK) and it also needs to know that it must jump over another occupied spot up, down, left and right only - (RED)..
looking for someone to make a working example and i can do the rest..