aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rwxr-xr-xapi/game/voerbakbin16624 -> 0 bytes
-rw-r--r--api/game/voerbak_connector.py2
-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/makefile21
-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
diff --git a/.gitignore b/.gitignore
index 67119f3..673452f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,5 +31,6 @@ node_modules/
.next/
# voerbak
-console/voerbak
+voerbak/voerbak
+voerbak/*.o
diff --git a/api/game/voerbak b/api/game/voerbak
deleted file mode 100755
index 595a610..0000000
--- a/api/game/voerbak
+++ /dev/null
Binary files differ
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);