diff --git a/main.cpp b/main.cpp index d28c11c..e3176d7 100644 --- a/main.cpp +++ b/main.cpp @@ -93,7 +93,8 @@ void move(int player[2]) //Rileva i tasti freccia while(waiting) { - if(getch() == 224) + unsigned char input = getch(); + if(input == 224) { switch(getch()) { @@ -135,6 +136,11 @@ void move(int player[2]) break; } } + else if(input == 115) //S + { + //Salta un turno + waiting = false; + } } player[0] = player_x; player[1] = player_y;