예제 #1
0
 /**
  * Tells if this player has too few material to mate
  * if true, he cannot mate.
  *
  * @return boolean
  */
 public function hasTooFewMaterialToMate(Player $player)
 {
     $nbPieces = $player->getNbAlivePieces();
     if (2 < $nbPieces) {
         return false;
     }
     return $this->canNotMate($player);
 }