2048.c
2048.c copied to clipboard
Console version of the game "2048" for GNU/Linux
gcc -o 2048 2048.c 2048.c:37:2: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration] snprintf(color,length,"\033[38;5;%d;48;5;%dm",*foreground,*background); ^ 2048.c:37:2: note: include the header...
This PR makes it easier to compile the project by adding a function named 2048. This function is "inherited" by ``all`` and ``install``, making it easier to compile the project...
I got this error when I was trying to run it on a virtual machine, is it any solution for it? · · · · 4 · · 2 ·...
Add in-game state to edit text label under the board. I think that all visible part of game including text labels should be rendered inside one function. So I moved...
This would require saving the highest score with date and time in a file. When the game ends, the high score should be shown, with a special message if the...
- Use the `%u` format specifier for printing `uint32_t`. - Cast the right-hand side of the condition of the `for` loop to `uint8_t` where it was implicitly promoted to `int`....
Add command line help by identifying flags `--help` or `-h`. All CLI tools have these arguments, so it's a bit strange that `2048` doesn't.
When a user enters 'h', they will see a statement that explains how to play the game and which keys they can use to quit, restart, and play the game....
allow route board, and rename reset key r to n.