The users have to swap the coins/pegs to occupy opponents’ zone without any causing any war between the two teams.
The coins/pegs can be moved or jumped (only one step) to adjacent vacant place (no diagonal move is allowed).
Jumping is allowed within both inter and intra coins/pegs (both Forward and Backward).
In any of players turn, if there exist any possible move then it has to be used. In case of no possible move then player can pass his chance.
The one who place all his coins/pegs in opponents terrain first will win the game.
Requirements:
· MATLAB 7.4 or higher