fixed to more readable state

This commit is contained in:
Rorikstr | Rust Dev 2025-09-26 14:11:45 +03:00
parent f8b74bf43d
commit 851d303aab
4 changed files with 187 additions and 37 deletions

View file

@ -5,7 +5,7 @@
void display_game() {
clear();
GameStateData* state = getGameState();
GameStateData* state = get_game_state();
// Очистка поля
for (int i = 0; i < FIELD_HEIGHT; i++) {

View file

@ -18,10 +18,10 @@ int main() {
int ch;
bool hold = false;
while (1) {
UserAction_t action = Undefined;
while (!Terminate) {
ch = getch();
UserAction_t action = Undefined;
switch (ch) {
case 'q': action = Terminate; break;
@ -43,8 +43,6 @@ int main() {
}
display_game();
if (action == Terminate) break;
}
endwin();