forked from Cryz/battle_royale_sim
replace print with log_debug
This commit is contained in:
@@ -6,6 +6,7 @@ from PIL import ImageDraw as _ImageDraw
|
||||
from utils import logs as _logs
|
||||
from bot_libs import syms as _bot_syms
|
||||
from entities import resource as _resource
|
||||
from utils import logs as _logs
|
||||
|
||||
|
||||
class BrSimMap():
|
||||
@@ -78,7 +79,7 @@ class BrSimMap():
|
||||
x= _random.randint(0, self.world_width -1)
|
||||
y= _random.randint(0, self.world_height -1)
|
||||
resource= self.get_map_matrix()[y][x]
|
||||
print(f'{target.get_name()} >>> ({x},{y})')
|
||||
_logs.log_debug(f'{target.get_name()} >>> ({x},{y})')
|
||||
target.set_coordinates(x, y)
|
||||
self.get_map_matrix()[y][x]= target
|
||||
|
||||
@@ -150,7 +151,7 @@ class BrSimMap():
|
||||
|
||||
attack= self.check_near_players(Player)
|
||||
if attack:
|
||||
print(f'{Player.get_name()} can attack {[a.get_name() for a in attack]}')
|
||||
_logs.log_debug(f'{Player.get_name()} can attack {[a.get_name() for a in attack]}')
|
||||
#avail_actions.append(1) #XXX replace with attack action (or maybe other actions on players)
|
||||
avail_actions[1]= attack #XXX replace with attack action (or maybe other actions on players)
|
||||
if self.get_player_available_directions(Player):
|
||||
|
||||
Reference in New Issue
Block a user