Ajout et correction

This commit is contained in:
2024-05-10 17:58:47 +02:00
parent 7831172941
commit db46ce0366
21 changed files with 527 additions and 380 deletions

View File

@@ -0,0 +1,23 @@
package Characters;
public class Players extends Personnage {
public Players(int[] coordinate, int n) {
super(n, coordinate);
}
public Integer changeCoordinate(String input) {
if (input.length() > 0) {
return (int)input.charAt(0);
}
return null;
}
public boolean moveCoordinate(int keys) {
Mouvements value = getMouvement(keys);
if (value != null) {
moveSnake(value);
return true;
}
return false;
}
}