diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-23 09:07:12 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-23 09:07:12 +0100 |
commit | 7380d1a0a708f869c7926ae323123b3e49feadcd (patch) | |
tree | a59f894ccad5105800d69b6c4a90c66c8489d0aa | |
parent | 7764b874e4894547f15f14f64a9c23a22e2dcc43 (diff) |
moved voerbak to own subfolder with makefile
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | api/game/voerbak | bin | 16624 -> 0 bytes | |||
-rw-r--r-- | api/game/voerbak_connector.py | 2 | ||||
-rw-r--r-- | voerbak/input (renamed from console/input) | 0 | ||||
-rw-r--r-- | voerbak/main.py (renamed from console/main.py) | 0 | ||||
-rw-r--r-- | voerbak/makefile | 21 | ||||
-rw-r--r-- | voerbak/test.py (renamed from console/test.py) | 0 | ||||
-rw-r--r-- | voerbak/v2.py (renamed from console/v2.py) | 0 | ||||
-rw-r--r-- | voerbak/voerbak.c (renamed from api/game/voerbak.c) | 1 |
9 files changed, 25 insertions, 2 deletions
@@ -31,5 +31,6 @@ node_modules/ .next/ # voerbak -console/voerbak +voerbak/voerbak +voerbak/*.o diff --git a/api/game/voerbak b/api/game/voerbak Binary files differdeleted file mode 100755 index 595a610..0000000 --- a/api/game/voerbak +++ /dev/null diff --git a/api/game/voerbak_connector.py b/api/game/voerbak_connector.py index 6c08553..f16a016 100644 --- a/api/game/voerbak_connector.py +++ b/api/game/voerbak_connector.py @@ -8,7 +8,7 @@ DISC_A = Fore.RED + DISC_SHAPE + Fore.RESET DISC_B = Fore.BLUE + DISC_SHAPE + Fore.RESET EMPTY = Fore.LIGHTBLACK_EX + "_" + Fore.RESET -VOERBAK_LOCATION = os.path.dirname(__file__) + "/voerbak" +VOERBAK_LOCATION = os.path.join(os.getcwd(), "voerbak/", "voerbak") if os.name == "nt": VOERBAK_LOCATION += ".exe" class bord: diff --git a/console/input b/voerbak/input index 1243fe0..1243fe0 100644 --- a/console/input +++ b/voerbak/input diff --git a/console/main.py b/voerbak/main.py index 433f130..433f130 100644 --- a/console/main.py +++ b/voerbak/main.py diff --git a/voerbak/makefile b/voerbak/makefile new file mode 100644 index 0000000..a4102d4 --- /dev/null +++ b/voerbak/makefile @@ -0,0 +1,21 @@ +CC = gcc +LD = gcc +RM = rm -f +CFLAGS = + +SOURCES := $(wildcard *.c) +OBJECTS := $(patsubst %.c,%.o, $(SOURCES)) + +all: voerbak + +.cpp.o: + $(CC) -c $(CFLAGS) $< + +voerbak: $(OBJECTS) + $(CC) $(OBJECTS) -o voerbak + +clean: + $(RM) voerbak + +distclean: clean + $(RM) *.o diff --git a/console/test.py b/voerbak/test.py index 8cc1db9..8cc1db9 100644 --- a/console/test.py +++ b/voerbak/test.py diff --git a/console/v2.py b/voerbak/v2.py index 69e61aa..69e61aa 100644 --- a/console/v2.py +++ b/voerbak/v2.py diff --git a/api/game/voerbak.c b/voerbak/voerbak.c index 0161726..e7c6c86 100644 --- a/api/game/voerbak.c +++ b/voerbak/voerbak.c @@ -79,6 +79,7 @@ bool dropFisje(int board[], int width, int height, int column, int disc) { } int main() { + printf("voerbak v2\n"); int width, height; scanf("%d %d", &width, &height); |