@Override
    public Case getCaseForIA(Joueur joueurAdverse) {
        Random rand = new Random();
        Case caseTouchee = null;
        if (this.listeCaseATester.isEmpty()) {
            int x = rand.nextInt(this._parametre.getNbCaseX());
            int y = rand.nextInt(this._parametre.getNbCaseY());
            while (((Case) (joueurAdverse.getCases().get(x + y * this._parametre.getNbCaseX()))).isEtat() || !joueurAdverse.getCases().get(x + y * this._parametre.getNbCaseX()).getClass().getSimpleName().equalsIgnoreCase("CaseBateau")) {
                x = rand.nextInt(this._parametre.getNbCaseX());
                y = rand.nextInt(this._parametre.getNbCaseY());
            }
            caseTouchee = (Case) (joueurAdverse.getCases().get(x + y * this._parametre.getNbCaseX()));
            if (caseTouchee.getClass().getSimpleName().equalsIgnoreCase("CaseBateau")) {
                casesATester(joueurAdverse, caseTouchee);
            }
        } else {
            caseTouchee = tester(joueurAdverse);
        }
        return caseTouchee;
    }