Minimal, terminal-based clone of the popular game 2048 written in C. Should work on any POSIX-compatible system. (For others, e.g. Windows, remove the termios stuff and the ANSI color sequences.)
2048 is an simple game. So should be it's implementation:
- Single C file,
- No dependencies but libc (and POSIX terminal interface + compatible terminal emulator),
- Only ~200 sloc.
Use w/a/s/d or 8/4/5/6 keys to move the blocks.
See LICENSE (ISC).