From 5e07446862d8883fcde0fe9e96e2fb4408de6d42 Mon Sep 17 00:00:00 2001 From: Federico Maggi Date: Thu, 24 Feb 2022 20:51:03 +0100 Subject: [PATCH] score --- algorithm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/algorithm.go b/algorithm.go index 031264f..72727c8 100644 --- a/algorithm.go +++ b/algorithm.go @@ -23,10 +23,10 @@ func algorithm( projectA := projects[a] projectB := projects[b] - scoreA := projectA.bestBefore - scoreB := projectB.bestBefore + scoreA := projectA.score + scoreB := projectB.score - return scoreA < scoreB + return scoreA > scoreB }) nextDay := 0