diff options
author | Ratakor <ratakor@disroot.org> | 2023-08-29 18:53:00 -0400 |
---|---|---|
committer | Ratakor <ratakor@disroot.org> | 2023-08-29 18:53:00 -0400 |
commit | 03c6090bb1578570f5199ef09055d5769b6790da (patch) | |
tree | b36110b4bea5695278e820076d45fb4380f01098 | |
parent | 89690d942ff4b9425fce154b75490c85a72c2b96 (diff) |
Add preview
-rw-r--r-- | README.md | 23 | ||||
-rw-r--r-- | preview.mp4 | bin | 0 -> 145010 bytes |
2 files changed, 22 insertions, 1 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..9e17527 --- /dev/null +++ b/preview.mp4 |