This commit is contained in:
Саша 2025-05-13 18:24:20 +02:00
parent ea86d13e9f
commit 54883b281c
2 changed files with 1 additions and 2 deletions

BIN
a3/snake Executable file

Binary file not shown.

View File

@ -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;
}
}