- 1
- 2
- 3
- 4
- 5
- 6
- 7
try {
if (field[i][j + 1] == 0) {
field[i][j + 1] = 2;
fifo.add(new Cell(i, j + 1));
}
} catch (ArrayIndexOutOfBoundsException ignored) {
}