add: display target field in console

This commit is contained in:
Szymon Szczubkowski 2023-04-17 15:46:17 +02:00
parent 24894482e4
commit c5d86faade

View File

@ -97,6 +97,7 @@ class Game:
if len(tractor_next_moves) == 0: if len(tractor_next_moves) == 0:
random_x = random.randrange(0, self.cell_number * self.cell_size, 50) random_x = random.randrange(0, self.cell_number * self.cell_size, 50)
random_y = random.randrange(0, self.cell_number * self.cell_size, 50) random_y = random.randrange(0, self.cell_number * self.cell_size, 50)
print("Generated target: ",random_x, random_y)
tractor_next_moves = graph_search_object.graphsearch( tractor_next_moves = graph_search_object.graphsearch(
[self.tractor.x, self.tractor.y, self.tractor.angle], [random_x, random_y]) [self.tractor.x, self.tractor.y, self.tractor.angle], [random_x, random_y])
else: else: