aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavid <[email protected]>2026-10-04 18:22:55 -0300
committerdavid <[email protected]>2026-10-04 18:22:55 -0300
commitae45941a786aa88a9a5d78e9c690b0cb49368a89 (patch)
tree2987e93d7b8bca98be20b923f5cf3aaae84d4f61
parent6b3829ef5888ff48dbf47b2cf99faf3c4b65e168 (diff)
downloadpetratc-master.tar.gz
petratc-master.zip
-rw-r--r--games/gamecatch.c5
-rw-r--r--games/gameclicker.c8
-rw-r--r--games/gameguess.c6
-rw-r--r--games/gamemaze.c5
-rw-r--r--games/gamerace.c18
-rw-r--r--rat.h7
6 files changed, 25 insertions, 24 deletions
diff --git a/games/gamecatch.c b/games/gamecatch.c
index a1328d5..299e39f 100644
--- a/games/gamecatch.c
+++ b/games/gamecatch.c
@@ -1,8 +1,3 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <time.h>
-#include <unistd.h>
-#include <ncurses.h>
#include "../rat.h"
/*
diff --git a/games/gameclicker.c b/games/gameclicker.c
index a27e2a2..0d21273 100644
--- a/games/gameclicker.c
+++ b/games/gameclicker.c
@@ -1,11 +1,3 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-#include <time.h>
-#include <unistd.h>
-#include <ncurses.h>
-#include <sys/stat.h>
#include "../rat.h"
/*
diff --git a/games/gameguess.c b/games/gameguess.c
index 47a0be9..86c6a26 100644
--- a/games/gameguess.c
+++ b/games/gameguess.c
@@ -1,9 +1,3 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <time.h>
-#include <ncurses.h>
#include "../rat.h"
#define maxhistory 4
diff --git a/games/gamemaze.c b/games/gamemaze.c
index 37ca3b9..41bdd44 100644
--- a/games/gamemaze.c
+++ b/games/gamemaze.c
@@ -1,8 +1,3 @@
-#include <stdlib.h>
-#include <time.h>
-#include <unistd.h>
-#include <ncurses.h>
-#include <string.h>
#include "../rat.h"
/*
diff --git a/games/gamerace.c b/games/gamerace.c
new file mode 100644
index 0000000..1b3244a
--- /dev/null
+++ b/games/gamerace.c
@@ -0,0 +1,18 @@
+#include "../rat.h"
+
+static int running;
+
+
+static void stop() {
+ clear();
+ refresh();
+ endwin();
+ running = 0;
+}
+
+
+void ratrace(){
+
+
+
+}
diff --git a/rat.h b/rat.h
index 4093af1..fae1d2d 100644
--- a/rat.h
+++ b/rat.h
@@ -1,7 +1,14 @@
#ifndef rat_h
#define rat_h
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include <unistd.h>
#include <ncurses.h>
+#include <sys/stat.h>
typedef struct {
float hunger;