diff --git a/entities/gamemap.py b/entities/gamemap.py index ff97872..8a76451 100644 --- a/entities/gamemap.py +++ b/entities/gamemap.py @@ -13,7 +13,7 @@ class BrSimMap(): self.players= players or [] self.items= items or [] self.world_width= 10 #seems a reasonable width for smartphones larger maps would go on a new line - self.world_height= 25 + self.world_height= 10 self.game_map= [] self.field_sym= _bot_syms.MAP_UTF8_FIELD self.player_male_sym= _bot_syms.MAP_UTF8_PLAYER_MALE @@ -37,15 +37,17 @@ 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 = [] + #mon = [] + #for i in range(self.world_width): + #mon.append(self.mountain_sym) for i in range(self.world_width): - mon.append(self.mountain_sym) - for i in range(self.world_width): - if i == 0 or i == self.world_width - 1: width.append(self.mountain_sym) - else: width.append(self.field_sym) + #if i == 0 or i == self.world_width - 1: width.append(self.mountain_sym) + #else: width.append(self.field_sym) + width.append(self.field_sym) for i in range(self.world_height): - if i == 0 or i == self.world_height - 1: self.game_map.append(mon) - else: self.game_map.append(_copy.deepcopy(width)) + #if i == 0 or i == self.world_height - 1: self.game_map.append(mon) + #else: self.game_map.append(_copy.deepcopy(width)) + self.game_map.append(_copy.deepcopy(width)) _logs.log_debug(f'init_map_matrix: {self.game_map}') def populate_map(self):