From 7e6acdabad10f510048036ccec66457b54e88ff0 Mon Sep 17 00:00:00 2001 From: Turku <34611702+Turku25@users.noreply.github.com> Date: Thu, 14 May 2020 10:41:30 -0500 Subject: [PATCH] All robots can win --- ricochet.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ricochet.c b/ricochet.c index b84874c..61b0fd9 100644 --- a/ricochet.c +++ b/ricochet.c @@ -145,7 +145,10 @@ void set_grow(Set *set) { } inline bool game_over(Game *game) { - if (game->robots[0] == game->token) { + if (game->robots[0] == game->token || + game->robots[1] == game->token || + game->robots[2] == game->token || + game->robots[3] == game->token ) { return true; } else {