summaryrefslogtreecommitdiff
path: root/src/ring.c
diff options
context:
space:
mode:
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;
+}