Skip to content
Snippets Groups Projects
Commit 54e8ecaa authored by dragapsy's avatar dragapsy
Browse files

Tache 8 (Remplissage des methodes suivantes de la classe FloodGame):

+ getPlayerScore(Player player)
+ hasWon(Player player)
+ hasEnded()
parent c14dc015
Branches
No related tags found
No related merge requests found
......@@ -48,19 +48,10 @@ public class FloodGame {
}
public int getPlayerScore(Player player) {
// TODO
return 0;
}
public int getPlayerScore(Player player) {return Flooder.coloredArea(player.getStartCell());}
public boolean hasWon(Player player){
// TODO
return false;
}
public boolean hasWon(Player player){return this.getPlayerScore(player)==totalFloodingArea;}
public boolean hasEnded(){
// TODO
return false;
}
public boolean hasEnded(){return this.hasWon(player);}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment