diff options
author | Louie S <louie@example.com> | 2023-11-01 17:18:18 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-11-01 17:18:18 -0400 |
commit | 39359f73687269178f10da8db11c69e91dc1ff3b (patch) | |
tree | 73005f3a920fa1728235cf50c5b103c0b820fa02 /src/ring.c | |
parent | 75457ef8cbfa25909fe9c4c8867db6ab96ba8ce2 (diff) |
Diffstat (limited to 'src/ring.c')
-rw-r--r-- | src/ring.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; +} |