Commit 72696b2d authored by Malo KERVESTIN's avatar Malo KERVESTIN
Browse files

chooseTeam()

parent 1013e288
......@@ -44,11 +44,11 @@ public class Game {
malo.addCard(cardController.createCard(2, Card.Rarity.RARE, axel));
prof.addCard(cardController.createCard(3, Card.Rarity.RARE, axel));
// connect test
felix.chooseDeck();
malo.chooseDeck();
prof.chooseDeck();
felix.chooseTeam();
malo.chooseTeam();
prof.chooseTeam();
admin.newWeek("CSV\\2021_42\\2021_42_Nantes.csv");// first week
felix.displayDeck();//on voit bien la nouvelle carte rare en plus
felix.displayDeck();// on voit bien la nouvelle carte rare en plus
}
}
......@@ -79,7 +79,7 @@ public class User extends Member {
return deck.get(choice);
}
public void chooseDeck() {
public void chooseTeam() {
if (deck.size() < 4) {
System.out.println("You don't have enough cards to create a team");
} else {
......@@ -168,7 +168,7 @@ public class User extends Member {
float sum = 0;
for (Card c : team) {
sum += c.getPlayer().getScore();
//TODO prendre en compte la rarete genre 1.05?
// TODO prendre en compte la rarete genre 1.05?
}
teamScore = sum / (float) team.length;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment