forked from s452751/AI_PRO
v. 1.06
This commit is contained in:
parent
c981921fbd
commit
cd8686fa46
@ -1,4 +1,6 @@
|
|||||||
class Tractor:
|
class Tractor:
|
||||||
def __init__(self, horizontal_index, vertical_index):
|
def __init__(self, horizontal_index, vertical_index, hitch, fuel_tank):
|
||||||
self.horizontal_index = horizontal_index
|
self.horizontal_index = horizontal_index
|
||||||
self.vertical_index = vertical_index
|
self.vertical_index = vertical_index
|
||||||
|
self.hitch = hitch
|
||||||
|
self.fuel_tank = fuel_tank
|
||||||
|
2
main.py
2
main.py
@ -18,7 +18,7 @@ vertical_change = 0
|
|||||||
|
|
||||||
board = Board.generate()
|
board = Board.generate()
|
||||||
|
|
||||||
tractor = Tractor(horizontal_index=0, vertical_index=0)
|
tractor = Tractor(horizontal_index=0, vertical_index=0, hitch="nothing", fuel_tank=100)
|
||||||
|
|
||||||
clock = pygame.time.Clock()
|
clock = pygame.time.Clock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user