summaryrefslogtreecommitdiff
path: root/src/ring.c
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-11-01 17:18:18 -0400
committerLouie S <louie@example.com>2023-11-01 17:18:18 -0400
commit39359f73687269178f10da8db11c69e91dc1ff3b (patch)
tree73005f3a920fa1728235cf50c5b103c0b820fa02 /src/ring.c
parent75457ef8cbfa25909fe9c4c8867db6ab96ba8ce2 (diff)
Create win screen and ability to restartHEADmaster
Diffstat (limited to 'src/ring.c')
-rw-r--r--src/ring.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ring.c b/src/ring.c
index e73d477..909a90f 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -44,3 +44,13 @@ bool drop_ring() {
held = NULL;
return true;
}
+
+bool check_win_condition() {
+ int i;
+
+ for(i = 0; i < 3; ++i) {
+ if(rings[i].location != 2) return false;
+ }
+
+ return true;
+}