minor updates 2
This commit is contained in:
parent
bb5eb51b1c
commit
2b6a15a95b
@ -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
|
||||||
|
@ -33,4 +33,4 @@ FPS = 10
|
|||||||
|
|
||||||
#ANIMATION_PART
|
#ANIMATION_PART
|
||||||
|
|
||||||
ANIMATION_PART = 1
|
ANIMATION_PART = 11
|
||||||
|
2
main.py
2
main.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user