From cd5612e4d169d4c42d26ad6565b3cc90f12b5909 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 16 Jun 2025 09:04:18 +0000 Subject: [PATCH] Update from 30 --- ACTIVE_TAG_FILES.txt | 0 materials/library-specification.md | 8 ++++---- materials/library-specification_RUS.md | 8 ++++---- materials/library-specification_UZB.md | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 ACTIVE_TAG_FILES.txt diff --git a/ACTIVE_TAG_FILES.txt b/ACTIVE_TAG_FILES.txt deleted file mode 100644 index e69de29..0000000 diff --git a/materials/library-specification.md b/materials/library-specification.md index e4dc74b..fae9f24 100644 --- a/materials/library-specification.md +++ b/materials/library-specification.md @@ -11,7 +11,7 @@ The `userInput` function takes as input the user `action` and an additional para The `updateCurrentState` function is intended to get data for rendering in the interface. It returns a structure containing information about the current state of the game. For example, for Tetris, the expiration of the timer causes the piece to move down one row. This function should be called from the interface at some intervals to keep the interface up to date. ```c -typedef enum UserAction_t { +typedef enum { Start, Pause, Terminate, @@ -20,9 +20,9 @@ typedef enum UserAction_t { Up, Down, Action -}; +} UserAction_t; -typedef struct GameInfo_t { +typedef struct { int **field; int **next; int score; @@ -30,7 +30,7 @@ typedef struct GameInfo_t { int level; int speed; int pause; -}; +} GameInfo_t; void userInput(UserAction_t action, bool hold); diff --git a/materials/library-specification_RUS.md b/materials/library-specification_RUS.md index 17b9584..5cda429 100644 --- a/materials/library-specification_RUS.md +++ b/materials/library-specification_RUS.md @@ -11,7 +11,7 @@ Функция `updateCurrentState` предназначена для получения данных для отрисовки в интерфейсе. Она возвращает структуру, содержащую информацию о текущем состоянии игры. Например, для тетриса истечение таймера приводит к смещению фигуры вниз на один ряд. Эта функция должна вызываться из интерфейса с некоторой периодичностью для поддержания интерфейса в актуальном состоянии. ```c -typedef enum UserAction_t { +typedef enum { Start, Pause, Terminate, @@ -20,9 +20,9 @@ typedef enum UserAction_t { Up, Down, Action -}; +} UserAction_t; -typedef struct GameInfo_t { +typedef struct { int **field; int **next; int score; @@ -30,7 +30,7 @@ typedef struct GameInfo_t { int level; int speed; int pause; -}; +} GameInfo_t; void userInput(UserAction_t action, bool hold); diff --git a/materials/library-specification_UZB.md b/materials/library-specification_UZB.md index 46d3614..1dcf659 100644 --- a/materials/library-specification_UZB.md +++ b/materials/library-specification_UZB.md @@ -11,7 +11,7 @@ Har bir o’yin kutubxonasida foydalanuvchi ma’lumotlarini qabul qiladigan fun `updateCurrentState` funksiyasi interfeysda ko’rsatish uchun ma’lumotlarni olish uchun mo’ljallangan. U o’yinning joriy holati haqida ma’lumotni o’z ichiga olgan tuzilmani qaytaradi. Masalan, tetris uchun taymerning tugashi shaklning bir qator pastga siljishiga olib keladi. Interfeysni yangilab turish uchun ushbu funktsiyani interfeysdan ma’lum vaqt oralig’ida chaqirish kerak. ```c -typedef enum UserAction_t { +typedef enum { Start, Pause, Terminate, @@ -20,9 +20,9 @@ typedef enum UserAction_t { Up, Down, Action -}; +} UserAction_t; -typedef struct GameInfo_t { +typedef struct { int **field; int **next; int score; @@ -30,7 +30,7 @@ typedef struct GameInfo_t { int level; int speed; int pause; -}; +} GameInfo_t; void userInput(UserAction_t action, bool hold);