From c40153be9f8895428c2857bcab261ebb0f968459 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 22 Oct 2022 19:14:16 +0200 Subject: [PATCH] Try out different costs --- brood/src/commands/path.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/brood/src/commands/path.rs b/brood/src/commands/path.rs index efe4dc7..4193c09 100644 --- a/brood/src/commands/path.rs +++ b/brood/src/commands/path.rs @@ -38,11 +38,11 @@ struct DijkstraLinkInfo { } impl DijkstraLinkInfo { - const BASE_COST: u32 = 1000; - fn from_link_info(info: LinkInfo) -> Self { Self { - cost: Self::BASE_COST + info.start, + cost: 1, + // cost: 1000 + info.start, + // cost: 1000 + info.start / 10, } } }