From e604743796a91b25791104d2474b75ddfb97c05313d6dd9be4266ef214ea8418 Mon Sep 17 00:00:00 2001 From: frostbite Date: Mon, 28 Jul 2025 12:50:52 +0200 Subject: [PATCH] added end of the map --- entities/map.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/entities/map.py b/entities/map.py index 7b6f608..8dec385 100644 --- a/entities/map.py +++ b/entities/map.py @@ -26,10 +26,15 @@ class BrSimMap(): # ⛰️ this is icon for the mountain (We can prevent players from passing through the mountains and thus use them for map boundaries.) width= [] + mon = [] for i in range(self.world_width): - width.append(self.field_sym) + mon.append(self.mountain_sym) + for i in range(self.world_width): + if i == 0 or i == 14: width.append(self.mountain_sym) + else: width.append(self.field_sym) for i in range(self.world_height): - self.game_map.append(width) + if i == 0 or i == 14: self.game_map.append(mon) + else: self.game_map.append(width) for player in self.players: p_coord_x, p_coord_y= players.get_player_coordinates() self.game_map[p_coord_y][p_coord_x]= self.player_sym