aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRatakor <ratakor@disroot.org>2023-08-29 18:53:00 -0400
committerRatakor <ratakor@disroot.org>2023-08-29 18:53:00 -0400
commit03c6090bb1578570f5199ef09055d5769b6790da (patch)
treeb36110b4bea5695278e820076d45fb4380f01098
parent89690d942ff4b9425fce154b75490c85a72c2b96 (diff)
Add preview
-rw-r--r--README.md23
-rw-r--r--preview.mp4bin0 -> 145010 bytes
2 files changed, 22 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3d29fcf..0ef8151 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,30 @@
2048.zig
========
-2048 in zig
+2048 in zig with undo, automatic save and other cool stuff
+
+![preview](/preview.mp4)
Installation
------------
Pick one of the release or build it yourself ;)
To build have a look at `zig build --help` or just run
`zig build -Doptimize=ReleaseSafe` the executable will be at ./zig-out/bin/2048.
+
+Usage
+-----
+```
+$ 2048 --help
+Usage: 2048 [options]
+
+Options:
+-s, --size [n] | Set the board size to n
+-h, --help │ Print this help message
+-v, --version | Print version information
+
+Commands:
+ ↑ w k | Classic movements
+ ←↓→ asd hjl |
+ q | Quit the game
+ r | Restart the game
+ u | Undo one action
+ ```
diff --git a/preview.mp4 b/preview.mp4
new file mode 100644
index 0000000..9e17527
--- /dev/null
+++ b/preview.mp4
Binary files differ