From 39359f73687269178f10da8db11c69e91dc1ff3b Mon Sep 17 00:00:00 2001 From: Louie S Date: Wed, 1 Nov 2023 17:18:18 -0400 Subject: Create win screen and ability to restart --- src/ring.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ring.c') 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; +} -- cgit