From 7f9a034fd5dbc15ae37fe7e08e1e041e326f733a Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 13 Feb 2016 18:54:19 +0100 Subject: [PATCH] Fixed regressions? The fact that calculated score differs from offical score really starts to annoy me --- reborn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reborn.py b/reborn.py index 6013a34..aeedf60 100755 --- a/reborn.py +++ b/reborn.py @@ -322,6 +322,9 @@ def route(roadmap): 'routeTime': routeTime, 'pack': pack }) + if not roadmap['stops']: # If it is the first stop, don't provide any alternative + break + if options: # Choose the best option (i.e. the max efficiency)