diff --git a/a3/snake b/a3/snake new file mode 100755 index 0000000..2621854 Binary files /dev/null and b/a3/snake differ diff --git a/a3/world.c b/a3/world.c index 38fe0d8..5c848e0 100644 --- a/a3/world.c +++ b/a3/world.c @@ -42,7 +42,7 @@ void setup_world(struct state* s, int w, int h) { void draw_world(const struct state* s) { if (!s) return; - system("clear"); // или "cls" на Windows + system("clear"); for (int row = 0; row < s->height; row++) { for (int col = 0; col < s->width; col++) { @@ -103,7 +103,6 @@ void change_direction(struct state* s, char key) { s->sy = 0; break; default: - // ничего не делаем при некорректном вводе break; } }