diff --git a/a3/main.c b/a3/main.c index 7ee1a4d..8506881 100644 --- a/a3/main.c +++ b/a3/main.c @@ -1,11 +1,6 @@ #include #include - -#ifdef _WIN32 -#include -#else #include -#endif #include "snake.h" #include "world.h" @@ -20,19 +15,15 @@ int main(void) { char command = read_input(); change_direction(&game_state, command); - int outcome = step_state(&game_state); + draw_world(&game_state); if (outcome != END_CONTINUE) { break; } -#ifdef _WIN32 - Sleep(1000); -#else - sleep(1); -#endif + sleep(1); } free_snake(game_state.snake); @@ -40,3 +31,4 @@ int main(void) { return 0; } +