I am stuck trying to get this code work, it's suppose to return true or false if the FitnessFrog is on a black stone, numbered 1 - 11 and if it's on a stone 0 or 12 or higher, neither FitnessFrog is suppose to move. I want to know if I am on the right track with this or not. Thank you.
Code:
/** * */ private boolean isOnBlackStones(FitnessFrog AFitnessFrog) { if (AFitnessFrog.getPosition() < 1) { } if (AFitnessFrog.getPosition() > 11) { } return false; } }
Comment