Fix clearing the predict

This commit is contained in:
s450026 2020-05-26 18:36:02 +02:00
parent eb23dda5b7
commit 1202ad849d
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ if __name__ == "__main__":
if not [waiter.X, waiter.Y] in tabPos or go == 0:
if [waiter.X, waiter.Y] in tabPos:
model = 'waiter_' + waiter.direction
graphics.clear(waiter.X, waiter.Y - 1)
for x in range(-1, 2):
waiterX = waiter.X+(x*0.1)
print(waiterX)
graphics.clear(waiterX, waiter.Y - 1)
rand = randrange(9)
x = tabPos[rand][0]
y = tabPos[rand][1]