Skip to content

Commit

Permalink
CA MARCHEEE credit damien et henzo
Browse files Browse the repository at this point in the history
  • Loading branch information
tetelie committed Apr 15, 2024
1 parent cf484a6 commit 4d52e5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public int getNearestBridge(int souris_x, int souris_y) {
*/
private boolean isIsleFull(Ile ile)
{
return ile.getNbPont() >= ile.getN();
return ile.isComplete();
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/main/java/fr/hashimiste/impl/jeu/GrilleImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ public void chargerSauvegarde(Sauvegarde sauvegarde) {
if (histo.getAction() == Historique.Action.UN_PONT) {
poserPont(histo.getIle1(), histo.getIle2(), 1);
} else if (histo.getAction() == Historique.Action.DEUX_PONTS) {
supprimerPont(histo.getIle1(), histo.getIle2());
poserPont(histo.getIle1(), histo.getIle2(), 2);
} else {
supprimerPont(histo.getIle1(), histo.getIle2());
Expand Down

0 comments on commit 4d52e5c

Please sign in to comment.