mnbvv
Páginas: 13 (3040 palabras)
Publicado: 12 de junio de 2014
int opcion;
do {
System.out.println("::::::::::: B I E N V E N I D O S A ESPIRAL ENJOY IT!:::::::::::\n");
mostrarMenu(menu); //Llamapublic void menu() {
int opcion;
do {
System.out.println("::::::::::: B I E N V E N I D O S A ESPIRAL ENJOY IT!:::::::::::\n");
mostrarMenu(menu);//Llamamos al método y le pasamos el array "menu"
opcion = pedirEntero("Seleccione la opcion del menu que desee (1-5):", 1, 5);
switch (opcion) {
case 1:
//int[][] matriz = pedirTamañoTablero();
//mover("A2-C4", matriz);
crearJugador(sistema);
break;
case 2:jugarEspiral();
break;
case 3:
ArrayList listaJugadoresAuxOrdenada = sistema.ordenarListaJugadores();
for (int i = 0; i < listaJugadoresAuxOrdenada.size(); i++) {
System.out.println(listaJugadoresAuxOrdenada.get(i));
}
break;case 4:
break;
case 5:
System.out.println("Fin! Qué buen juego! =S ");
break;
}
} while (opcion != 5);
}public void menu() {
int opcion;
do {
System.out.println("::::::::::: B I E N V E N I D O S A ESPIRAL ENJOY IT!:::::::::::\n");mostrarMenu(menu); //Llamamos al método y le pasamos el array "menu"
opcion = pedirEntero("Seleccione la opcion del menu que desee (1-5):", 1, 5);
switch (opcion) {
case 1:
//int[][] matriz = pedirTamañoTablero();
//mover("A2-C4", matriz);
crearJugador(sistema);
break;case 2:
jugarEspiral();
break;
case 3:
ArrayList listaJugadoresAuxOrdenada = sistema.ordenarListaJugadores();
for (int i = 0; i < listaJugadoresAuxOrdenada.size(); i++) {
System.out.println(listaJugadoresAuxOrdenada.get(i));
}break;
case 4:
break;
case 5:
System.out.println("Fin! Qué buen juego! =S ");
break;
}
} while (opcion != 5);
}public void menu() {
int opcion;
do {
System.out.println("::::::::::: B I E N V E N I D O S A ESPIRAL ENJOYIT!:::::::::::\n");
mostrarMenu(menu); //Llamamos al método y le pasamos el array "menu"
opcion = pedirEntero("Seleccione la opcion del menu que desee (1-5):", 1, 5);
switch (opcion) {
case 1:
//int[][] matriz = pedirTamañoTablero();
//mover("A2-C4", matriz);
crearJugador(sistema);break;
case 2:
jugarEspiral();
break;
case 3:
ArrayList listaJugadoresAuxOrdenada = sistema.ordenarListaJugadores();
for (int i = 0; i < listaJugadoresAuxOrdenada.size(); i++) {
System.out.println(listaJugadoresAuxOrdenada.get(i));}
break;
case 4:
break;
case 5:
System.out.println("Fin! Qué buen juego! =S ");
break;
}
} while (opcion != 5);
}public void menu() {
int opcion;
do {
System.out.println("::::::::::: B I E N V E N I D...
Leer documento completo
Regístrate para leer el documento completo.