mirror of
https://github.com/Cpt-Adok/SNAKE.git
synced 2026-01-25 14:34:07 +00:00
ajustement sur les fichiers de configurations
This commit is contained in:
@@ -29,7 +29,7 @@ public class IA extends Personnage {
|
||||
this.qLearning = new QLearning(qTable, alpha, gamma, epsilon);
|
||||
|
||||
// Attribution d'un nom unique à l'IA.
|
||||
this.name = (name == null) ? "IA : " + UUID.randomUUID() : name;
|
||||
super.name = (name == null) ? "IA : " + UUID.randomUUID() : name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,7 @@ public class Player extends Personnage {
|
||||
*/
|
||||
public Player(int[] coordinate, String name) {
|
||||
super(coordinate);
|
||||
|
||||
this.name = name;
|
||||
super.name = name;
|
||||
}
|
||||
|
||||
public boolean moveCoordinate(int keys) {
|
||||
|
||||
@@ -8,14 +8,12 @@ import game.environnement.*;
|
||||
import personnage.types.*;
|
||||
|
||||
public class Robot extends Personnage {
|
||||
|
||||
Map m;
|
||||
Mouvement move;
|
||||
String name;
|
||||
|
||||
public Robot(String name, int[] coordinate) {
|
||||
super(coordinate);
|
||||
this.name = name;
|
||||
super.name = name;
|
||||
}
|
||||
|
||||
/**Fonction commune aux sous-classes de Personnage
|
||||
|
||||
Reference in New Issue
Block a user