From 60613d00bbd7ad3541670d26dc27073810c53c29 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 24 Aug 2025 10:27:59 +0900 Subject: rewrite without using ncurses --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1862a2f..a14a743 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,24 @@ # 2048 -CLI 2048 written in 2 KiB. +CLI 2048 written in 2 kb. ``` -$ wc -c *.c - 2048 2048.c - 4930 2048_clean.c - 6978 total +$ wc -c **/*.c + 2048 2048.c + 5574 2048_clean.c + 2048 orig/2048.c + 4930 orig/2048_clean.c +14600 total ``` ## Compile ``` -$ make build +$ make ``` -By default, `2048.c` is compiled. If you want to compile another source file, set `SUFFIX` like this: `SUFFIX=_clean make build` (it compiles `2048_clean.c`) +By default, `2048.c` is compiled. If you want to compile another source file, set `SUFFIX` like this: `SUFFIX=_clean make` (it compiles `2048_clean.c`) ## Play @@ -40,3 +42,5 @@ $ ./bin/2048 8x8 # large 2048 * Minified version. Its file size is 2 KiB. * `2048_clean.c` * Human-friendly version. +* `orig/2024.c` and `orig/2024_clean.c` + * Original version. They depends on `ncurses` library. -- cgit v1.2.3-70-g09d2