
public class ProbableNoMemory extends Strategy {
  double probNice;
  double probNasty;
  double probQuit;
  protected void setProbabilities(double pNe, double pNy, double pQ) {
    probNice = pNe;
    probNasty = pNy;
    probQuit = pQ;
  }
  protected int firstMove () {
    double rand = Math.random();
    System.out.println("\n  "+probNice+"  "+probNasty+"  "+probQuit+"  "+rand);
    if (rand < probNice) return 0;
    if (rand < probNice+probNasty) return 1;
    else return 2;
  }
}

