-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mapas.java
39 lines (34 loc) · 2.25 KB
/
Mapas.java
1
2
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
public class Mapas {
String[][] laberinto_parte_uno = {
{"0","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T"},
{"A","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*"},
{"B","*","*"," "," "," "," ","*"," "," "," ","*","*","*"," "," "," ","*","*","*","*"},
{"C","*"," "," ","*","*","*","*"," ","*"," ","*","*","*"," ","*","*","*","*","*","*"},
{"D","*"," ","*","*"," "," "," "," ","*"," ","*"," "," "," ","*","*"," "," "," ","*"},
{"E","*"," ","*","*"," ","*","*","*","*"," "," "," ","*","*","*","*"," ","*"," ","*"},
{"F","*"," ","*","*"," "," ","*","*"," "," ","*","*","*","*","*","*","*","*"," ","*"},
{"G","X"," ","*","*","*"," ","*","*","*","*","*","*","*","*","*","*","*"," "," ","*"},
{"H","*"," "," "," "," "," "," "," "," "," ","*","*","*","*","*","*"," "," ","*","*"},
{"I","*"," ","*","*","*","*","*","*","*"," ","*","*","*","*","*","*"," ","*","*","*"},
{"J","*"," ","*","*","*","*","*","*","*"," ","*","*","*","*"," "," "," ","*","*","*"},
{"K","*"," ","*"," "," ","*"," "," "," "," "," "," "," "," "," ","*"," ","*","*","*"},
{"L","*"," ","*","*"," ","*"," ","*","*"," ","*","*","*"," ","*","*"," ","*","*","*"},
{"M","*"," ","*","*"," "," "," ","*","*"," ","*","*","*"," ","*","*"," "," ","*","*"},
{"N","*"," ","*","*","*","*","*","*","*"," "," ","*","*"," "," ","*","*"," ","*","*"},
{"O"," "," "," "," "," ","*"," "," ","*","*"," "," ","*","*"," ","*","*"," "," ","*"},
{"P"," ","*","*","*"," ","*","*"," ","*","*","*"," ","*","*"," ","*","*","*"," ","*"},
{"Q"," ","*","*"," "," ","*","*"," "," "," "," "," ","*"," "," ","*"," "," "," ","*"},
{"R"," "," ","*"," ","*"," ","*"," ","*","*","*","*","*"," ","*","*","*","*","*","*"},
{"S","*","*","*","*","*"," "," "," ","*","*","*","*","*"," ","*","*","*","*","*","*"},
{"T","*","*","*","*","*","*","*","*","*","*","*","*","*"," ","*","*","*","*","*","*"},
};
char[] comparacion = {'0','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T'};
public void mostrarMapa() {
for (int i = 0; i < laberinto_parte_uno.length; i++) {
for (int j = 0; j < laberinto_parte_uno.length; j++) {
System.out.print(laberinto_parte_uno[i][j] + " ");
}
System.out.println();
}
}
}