From bf105e7f446d2808eb5bb3e854762f0f593efebe Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:44:09 +0000 Subject: Mon, Feb 19, 2024, 12:44 PM -08:00 --- wk3/pset/runoff/runoff.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c index 6c06509..0fbb055 100644 --- a/wk3/pset/runoff/runoff.c +++ b/wk3/pset/runoff/runoff.c @@ -166,8 +166,12 @@ bool print_winner(void) { // go through each candidate // if they have more than 50% of the votes they win - // - // print winner + // print winner + // return true; + // else + // filter through all candidates + // see who has the least votes and eliminate them + // return false; return false; } -- cgit v1.2.3