This is a little game with pure C as the term project for the course Basics of Programming and Application of my group.
⚠IMPORTANT: THIS PROJECT IS STILL UNDER DEVELOPMENT. Variations for different platforms contain large amounts of dreadful platform-exclusive features. The stability and safety of any code in master branch is not guaranteed.
2048.c
is the main working file of this project, which has been tested on Ubuntu 20.04 focal with clang version 10, build and run it in a terminal and you should be able to see what has been achieved. 2048ForVS.c
(if any) is made to be compatible with Visual C++ 2008 and above.
Move numbers with WASD or arrow keys. Press q
to quit, u
to undo and r
to restart.
- Basic game logic
- Undo
- Colorize the background of the numbers
- Adjust the size of the blocks
- Store game records
- Display sorted records
- GUI
GUI-Ver
is the working directory of GUI ver. It renders with modified Nuklear and GDI, which is tested on Windows with both MinGW-w64 and Visual C++ 2010 Express. In theory it supports Windows only, but you may easily port it to other desktop environments.
- Just compile and run!
- Add the parameters when compiling:
-lm -luser32 -lgdi32
2048.c by mevdschee for the algorithmic ideas and practice of non-canonical terminal input
Anyone offering me advice