Nicolás Almaraz
/
TP1_Ejer2
Revision 3:26b1c880c092, committed 2019-06-16
- Comitter:
- nicoalmaraz
- Date:
- Sun Jun 16 05:02:33 2019 +0000
- Parent:
- 2:243d75fd5132
- Commit message:
- Trabajo Practico 1 - Ejercicio 2: Simon 1.3
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Jun 15 19:56:37 2019 +0000 +++ b/main.cpp Sun Jun 16 05:02:33 2019 +0000 @@ -75,7 +75,7 @@ if(mostrado==nivel) { simon=3; mostrado=0; - printf("Realice la secuencia\r\n"); + printf("\r\nRealice la secuencia\r\n"); } break; case 3: //Espero a que el usuario ingrese un color @@ -87,8 +87,7 @@ break; case 4: //Analizo el datoingresado if(usuario[ingreso]!=patron[ingreso]) { //me fijo si ingresé algo distintinto a lo que corresponde y lo indico con el flag "fin" - printf("Perdiste!\n"); - printf("Presione el pulsador Reset para reiniciar el juego\r\n"); + printf("Perdiste!\r\n"); fin=1; } if ((usuario[ingreso]==patron[ingreso])&&(ingreso<nivel)) {//Si ingresé un valor correcto vuelvo al estado de ingresar datos y sumo la variable "ingreso" @@ -104,7 +103,6 @@ } if(ingreso==23) { //me fijo si llegué a ingresar 23 cosas y lo indico con el flag "fin" printf("Ganaste!\r\n"); - printf("Presione el pulsador Reset para reiniciar el juego\r\n"); fin=1; } if(fin) { //Si perdí o gané reinicio las variables para comenzar un juego nuevo @@ -112,7 +110,8 @@ ingreso=0; nivel=1; fin=0; - printf("Presione el pulsador de inicio para volcer a jugar"); + printf("Presione el pulsador Inicio para reiniciar el juego\r\n"); + printf("\r\n---------------------------------------------------\r\n"); } break; }