texts
This commit is contained in:
2
debug.py
2
debug.py
@@ -59,7 +59,7 @@ def _random_action(Arena, Player_one):
|
|||||||
Player_one.move(x, y)
|
Player_one.move(x, y)
|
||||||
Map.init_map_matrix()
|
Map.init_map_matrix()
|
||||||
print(Map.get_renderized_map())
|
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
|
return msg
|
||||||
|
|
||||||
|
|||||||
@@ -97,16 +97,16 @@ class BrSimMap():
|
|||||||
return self.game_map
|
return self.game_map
|
||||||
|
|
||||||
def get_player_available_directions(self, Player):
|
def get_player_available_directions(self, Player):
|
||||||
coord_x, coord_y= Player.get_player_coordinates()
|
coord_x, coord_y= Player.get_coordinates()
|
||||||
avail_directions= []
|
avail_directions= []
|
||||||
if self.get_map_matrix()[coord_x - 1][coord_y] not in [self.mountain_sym]:
|
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]:
|
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]:
|
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]:
|
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
|
return avail_directions
|
||||||
|
|
||||||
def get_renderized_map(self):
|
def get_renderized_map(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user