From bc3d3b59c941629e139c1fb2e31f3fd671f9e4ca Mon Sep 17 00:00:00 2001 From: oto Date: Sun, 7 Aug 2022 09:24:05 +0300 Subject: [PATCH] Explained some stuff --- GameMap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GameMap.py b/GameMap.py index 3b494b8..89486ae 100644 --- a/GameMap.py +++ b/GameMap.py @@ -18,6 +18,8 @@ class GameMap: def add_mark(self, x, y, player): + # Can be 0 or can be a max value, so, + # this is border-inclusive. if (x <= self.max_size_x and y <= self.max_size_y) and (x >= 0 and y >= 0): if (x, y) not in self.data: self.data[(x,y)] = player