hirschsn / mini2048

Minimal, terminal-based clone of the popular game 2048 written in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mini2048

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.)

screenshot

Why yet another clone? Why "mini"?

2048 is an simple game. So should be it's implementation:

  1. Single C file,
  2. No dependencies but libc (and POSIX terminal interface + compatible terminal emulator),
  3. Only ~200 sloc.

Usage

Use w/a/s/d or 8/4/5/6 keys to move the blocks.

License

See LICENSE (ISC).

About

Minimal, terminal-based clone of the popular game 2048 written in C.

License:ISC License


Languages

Language:C 96.4%Language:Makefile 3.6%