Compare commits

...

2 Commits

Author SHA1 Message Date
Rampoina df4ffee71c Add Makefile and submodule 2023-01-03 20:50:23 +01:00
Rampoina ac5d6efaea Add readme 2023-01-03 20:49:57 +01:00
4 changed files with 39 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "CBQN"]
path = CBQN
url = https://github.com/dzaima/CBQN.git

1
CBQN Submodule

@ -0,0 +1 @@
Subproject commit 982a54d98a4d2a37f40d0cc711b0ad5e396613e3

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
.PHONY: check-and-reinit-submodules all
all: .check-and-reinit-submodules
@${MAKE} -C CBQN/ MAKEFLAGS=
run: 2048.bqn
./CBQN/BQN 2048.bqn
.check-and-reinit-submodules:
@if git submodule status | egrep -q '^[-]|^[+]' ; then \
echo "INFO: reinitializing git submodules"; \
git submodule update --init; \
fi

23
README.md Normal file
View File

@ -0,0 +1,23 @@
# A 2048 game made in [BQN](https://github.com/mlochbaum/BQN)
## Controls
Vim style movement keys
- h: left
- j: down
- k: up
- l: right
- q: quit
## Running
If you already have BQN and you have it on your path just run `./soko.bqn`
Otherwise:
1. `make` to compile CBQN
2. `make run` to run the game
## License
This code is licensed as AGPLv3