Improving model, fix plate prediction

This commit is contained in:
s450026 2020-05-26 15:02:34 +02:00
parent b8f9b15692
commit 2e114bc0ee

View File

@ -21,7 +21,9 @@ if __name__ == "__main__":
goal = None goal = None
path = '' path = ''
# Maksymilian
go = 0 go = 0
rand = 0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
@ -49,13 +51,12 @@ if __name__ == "__main__":
if event.key == pygame.K_m: if event.key == pygame.K_m:
tabPos = [[1, 2], [1, 5], [1, 8], [5, 4], [5, 8], [8, 2], [8, 5], [8, 8], [12, 3], [12, 7]] tabPos = [[1, 2], [1, 5], [1, 8], [5, 4], [5, 8], [8, 2], [8, 5], [8, 8], [12, 3], [12, 7]]
rand = randrange(8)
if not [waiter.X, waiter.Y] in tabPos or go == 0: if not [waiter.X, waiter.Y] in tabPos or go == 0:
if [waiter.X, waiter.Y] in tabPos: if [waiter.X, waiter.Y] in tabPos:
model = 'waiter_' + waiter.direction model = 'waiter_' + waiter.direction
graphics.clear(waiter.X, waiter.Y - 1) graphics.clear(waiter.X, waiter.Y - 1)
# save_dataset() rand = randrange(9)
x = tabPos[rand][0] x = tabPos[rand][0]
y = tabPos[rand][1] y = tabPos[rand][1]