tests supplementaires IA, revoir choix equipements

This commit is contained in:
AhmedSaad
2020-05-01 09:53:35 +02:00
parent 51e4d845f0
commit 861b66f439
2 changed files with 70 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class JoueurVirtuel extends Joueur {
resliste = joueurs;
Joueur res = resliste.get(0);
for (int i = 1; i < resliste.size(); i++) {
if (res.getStat("nb_equipements") > resliste.get(i).getStat("nb_equipements"))
if (res.getStat("nb_equipements") < resliste.get(i).getStat("nb_equipements"))
res = resliste.get(i);
}
return res;