From 2a52ef67c246947727bca66a75b81544364c2e43 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 13 Feb 2016 16:48:53 +0100 Subject: [PATCH] Closer score calculation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I realized it wasn't it after what I said in the previous commit. Yet still not exact (±1 pt with actual score). We'll say that's because of floating point errors :) --- reborn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reborn.py b/reborn.py index 2b7f51d..02ca540 100755 --- a/reborn.py +++ b/reborn.py @@ -200,7 +200,7 @@ class Drone: output(self.id, 'D', client.id, product.id, qt) if client.satisfied(): global score - score += math.ceil((T-(self.avail-1))/T*100) + score += math.ceil((T-(self.avail+1))/T*100) log("Client", client.id, "satisfied!", "New score:", score) def wait(self, turns=1):