improvements

This commit is contained in:
Ninja-Jambon 2024-03-27 14:24:27 +01:00
parent 491cd35136
commit fc18dea7f4
3 changed files with 39 additions and 6 deletions

View file

@ -172,6 +172,13 @@ public class Universe {
else {}
}
public void removeObstacle(int pos_i, int pos_j) {
if (this.grid[pos_i][pos_j] == -1) {
this.grid[pos_i][pos_j] = 0;
}
else {}
}
public int possibleChoices(Situation s) {
int i = s.pos_i;
int j = s.pos_j;