From c4d4d6bb52d87942c1fe19c764243d85f87124ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Sat, 23 May 2020 17:14:29 +0200 Subject: [PATCH] Add enum for player distance from objects like food This enum will be used in decision tree learning. --- .../projectSpecificClasses/DistFromObject.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/AI/DecisionTrees/projectSpecificClasses/DistFromObject.py diff --git a/src/AI/DecisionTrees/projectSpecificClasses/DistFromObject.py b/src/AI/DecisionTrees/projectSpecificClasses/DistFromObject.py new file mode 100644 index 0000000..2c15130 --- /dev/null +++ b/src/AI/DecisionTrees/projectSpecificClasses/DistFromObject.py @@ -0,0 +1,12 @@ +from enum import Enum + + +class DistFromObject(Enum): + """ + Distance in fields from object. + + """ + + LT_3 = 0, + GE_3_LT_8 = 1, + GE_8 = 2