explicit consts

This commit is contained in:
2024-08-03 16:53:10 +03:00
parent ed236ed501
commit 47d72e2df1

4
main.c
View File

@@ -15,7 +15,7 @@ char board[BRD_SIZE_Y][BRD_SIZE_X];
const char SNAKE_VIS = '#';
int main() {
clock_t initClock = clock();
const clock_t initClock = clock();
// Termios setup
struct termios attr;
@@ -49,7 +49,7 @@ int main() {
int points = 0;
int gameSpeed = 0;
int sleepInterval = 200 - gameSpeed;
const int sleepInterval = 200;
// Snake head setup
snakePart* snakeHead = (snakePart*) malloc(sizeof(snakePart));