Fix clearing the predict
This commit is contained in:
parent
eb23dda5b7
commit
1202ad849d
5
main.py
5
main.py
@ -55,7 +55,10 @@ if __name__ == "__main__":
|
|||||||
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)
|
for x in range(-1, 2):
|
||||||
|
waiterX = waiter.X+(x*0.1)
|
||||||
|
print(waiterX)
|
||||||
|
graphics.clear(waiterX, waiter.Y - 1)
|
||||||
rand = randrange(9)
|
rand = randrange(9)
|
||||||
x = tabPos[rand][0]
|
x = tabPos[rand][0]
|
||||||
y = tabPos[rand][1]
|
y = tabPos[rand][1]
|
||||||
|
Loading…
Reference in New Issue
Block a user