Skip to content

Commit 944dd56

Browse files
committed
New test added
1 parent 0ef21d9 commit 944dd56

File tree

2 files changed

+77
-2
lines changed

2 files changed

+77
-2
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
74
2+
#######################################################E#######################################################
3+
# #
4+
# #
5+
# #
6+
# #
7+
# #
8+
# #
9+
# #
10+
# #
11+
# #
12+
# #
13+
# #
14+
# #
15+
# #
16+
# #
17+
# #
18+
# #
19+
# #
20+
# #
21+
# #
22+
# #
23+
# #
24+
# #
25+
# #
26+
# #
27+
# #
28+
# #
29+
# #
30+
# #
31+
# #
32+
# #
33+
# #
34+
# #
35+
# #
36+
# #
37+
# #
38+
# #
39+
# #
40+
# #
41+
# #
42+
# #
43+
# #
44+
# #
45+
# #
46+
# #
47+
# #
48+
# #
49+
# #
50+
# #
51+
# #
52+
# #
53+
# #
54+
# #
55+
# #
56+
# #
57+
# #
58+
# #
59+
# #
60+
# #
61+
# #
62+
# #
63+
# #
64+
# #
65+
# #
66+
# #
67+
# #
68+
# #
69+
# #
70+
# #
71+
# #
72+
# #
73+
# #
74+
# #
75+
#######################################################S#######################################################

src/Labirinto.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ private void acharPosicoesAdjacentes(Fila<Coordenada> filaDeAdjacentes) throws E
176176
int linha = atual.getLinha();
177177
int coluna = atual.getColuna();
178178

179+
// Posição à baixo
180+
adicionarPosicaoAdjacente(filaDeAdjacentes, linha + 1, coluna);
179181
// Posição à direita
180182
adicionarPosicaoAdjacente(filaDeAdjacentes, linha, coluna + 1);
181183
// Posição à cima
182184
adicionarPosicaoAdjacente(filaDeAdjacentes, linha - 1, coluna);
183-
// Posição à baixo
184-
adicionarPosicaoAdjacente(filaDeAdjacentes, linha + 1, coluna);
185185
// Posição à esquerda
186186
adicionarPosicaoAdjacente(filaDeAdjacentes, linha, coluna - 1);
187187
}

0 commit comments

Comments
 (0)