Diagonal Fish –
Create a new type of fish where instead of moving forward, this fish moves on a diagonal.
Tend To Go Forward
Fish –
Create a new type of fish that will look at the next location in the fish method. With the current code the fish has an equal chance of going forward, to the left or to the right. If the location in front of the fish is clear it should have two times the chance of going forward as moving to the sides.
Even Odd Fish –
Create a new type of fish, EvenOddFish. This type of fish should move based upon its current location. If the sum of the row and the column of its current location is even, the fish should only move to an empty neighbor whose row and column sum is even. If the sum of the row and column is odd, then the fish should only move to an empty neighbor whose row and column sum is odd.
In writing EvenOddFish you should write a constructor and overload the nextLocation method of the Fish class. You will also need to modify the SimpleMBSDemo program in order to construct at least two EvenOddFish to see how it moves.