diff --git a/debug.py b/debug.py index c7d8572..8a19f71 100644 --- a/debug.py +++ b/debug.py @@ -59,7 +59,7 @@ def _random_action(Arena, Player_one): Player_one.move(x, y) Map.init_map_matrix() print(Map.get_renderized_map()) - msg= f'{Player_one.get_name()} Si muove a: {direction}' + msg= f'{Player_one.get_name()} Si muove verso »»» {direction}' return msg diff --git a/entities/gamemap.py b/entities/gamemap.py index 74c7ad8..1b66dda 100644 --- a/entities/gamemap.py +++ b/entities/gamemap.py @@ -97,16 +97,16 @@ class BrSimMap(): return self.game_map def get_player_available_directions(self, Player): - coord_x, coord_y= Player.get_player_coordinates() + coord_x, coord_y= Player.get_coordinates() avail_directions= [] if self.get_map_matrix()[coord_x - 1][coord_y] not in [self.mountain_sym]: - avail_directions.append((-1, 0, 'left')) + avail_directions.append((-1, 0, 'sinistra')) if self.get_map_matrix()[coord_x + 1][coord_y] not in [self.mountain_sym]: - avail_directions.append((1, 0, 'right')) + avail_directions.append((1, 0, 'destra')) if self.get_map_matrix()[coord_x][coord_y - 1] not in [self.mountain_sym]: - avail_directions.append((0, -1, 'up')) + avail_directions.append((0, -1, 'su')) if self.get_map_matrix()[coord_x][coord_y + 1] not in [self.mountain_sym]: - avail_directions.append((0, 1, 'bottom')) + avail_directions.append((0, 1, 'giu\'')) return avail_directions def get_renderized_map(self):