11extern const wchar_t chSq;
16extern const wchar_t crSq;
21extern const wchar_t eSq;
26extern const wchar_t fSq;
57extern struct winsize
w;
void printCentered(wchar_t *text)
Print text centered horizontally based on string length.
struct winsize w
Global variable type struct winsize used for terminal width and height.
const wchar_t crSq
Assign unicode character (green crossed square) to this global variable.
int intLen(int value)
Calculate the length of a given number.
int waitUserInput(void)
Loop until user press a valid key.
void delayTimer(int timeDelay)
Call the system sleep.
void heightSpacing(int filledHeight)
Apply a vertical spacing based on window heigth and what need to be printed.
const wchar_t fSq
Assign unicode character (black square) to this global variable.
void widthSpacing(int filledWidth)
Apply an horizontal spacing based on window width and what need to be printed.
const int timeLimit
Time waiting before letting the tetromino fall one row below.
const wchar_t eSq
Assign unicode character (white square) to this global variable.
void waitUser(void)
Wait until Enter key is pressed.
void sound(void)
Makes a beep sound.
void exitFailure(void)
Exit the program after cleaning everything on screen.
void clearCLI(void)
Call the system function to clear the cli.
const wchar_t chSq
Assign unicode character (green check square) to this global variable.