From 3e4f10236df4683c2db3645d097f8bd7b7643d22 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Mon, 18 May 2020 14:29:26 +0200 Subject: [PATCH] Removed redundant pickWeightedAffinity function --- src/AI/Affinities.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/AI/Affinities.py b/src/AI/Affinities.py index 795895f..9109829 100644 --- a/src/AI/Affinities.py +++ b/src/AI/Affinities.py @@ -24,12 +24,3 @@ class Affinities: :return: List of weights """ return [self.food, self.water, self.rest] - - - -def pickWeightedAffinity(affinities: Affinities): - population = [Classifiers.FOOD, Classifiers.WATER, Classifiers.REST] - weights = affinities.getWeigths() - - return random.choices(population, weights)[0] -