public class NNHitRun extends Strategy { // Nice, nice, hit and run public NNHitRun () {} public NNHitRun (int strategyNumberIn, String nameIn) { strategyNumber = strategyNumberIn; name = nameIn; pop = 0; } protected int thirdMove (int myLastPlay, int otherLastPlay, int myPreviousPlay, int otherPreviousPlay, int currentScore) {return 1;} protected boolean leave (int myLastPlay, int otherLastPlay, int currentScore) {return (otherLastPlay==1 || myLastPlay==1);} }