minor updates 2

This commit is contained in:
secret_dude 2021-04-13 21:49:31 +02:00
parent bb5eb51b1c
commit 2b6a15a95b
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ def nearestLookingField(board, tractor, TillageUnit):
print('Wroc do bazy zmienic narzedzie') print('Wroc do bazy zmienic narzedzie')
end_horizontal_index = 0 end_horizontal_index = 0
end_vertical_index = 0 end_vertical_index = 0
return(end_horizontal_index, end_vertical_index) return end_horizontal_index, end_vertical_index
def graphsearch(tractor, board, TillageUnit): def graphsearch(tractor, board, TillageUnit):
start_horizontal_index = tractor.horizontal_index start_horizontal_index = tractor.horizontal_index

View File

@ -33,4 +33,4 @@ FPS = 10
#ANIMATION_PART #ANIMATION_PART
ANIMATION_PART = 1 ANIMATION_PART = 11

View File

@ -45,7 +45,7 @@ while working:
field = board[tractor.horizontal_index][tractor.vertical_index] field = board[tractor.horizontal_index][tractor.vertical_index]
if tractor.autodrive and tractor.engineWorking: if tractor.autodrive and tractor.engineWorking:
animationSpeed = 11 animationSpeed = ANIMATION_PART
else: else:
animationSpeed = 1 animationSpeed = 1
print(ANIMATION_PART) print(ANIMATION_PART)