Exemple #1
0
 public bool legalPlay(SPlayer p, Board b, Tile t)
 {
     return(p.tileInHand(t) &&
            (b.isNotEliminationMove(p, t) ||
             (!b.isNotEliminationMove(p, t) &&
              (p.allMovesEliminatePlayer(b, t)))));
 }
Exemple #2
0
 public bool legalPlay(SPlayer p, Board b, Tile t)
 {
     return(!b.isEliminationMove(p.getColor(), t) ||
            (b.isEliminationMove(p.getColor(), t) &&
             (p.allMovesEliminatePlayer(b, t))));
 }