Add randomly change the plate from full to empty
This commit is contained in:
parent
6d4744f553
commit
df0bf3207c
3
main.py
3
main.py
@ -55,6 +55,7 @@ if __name__ == "__main__":
|
||||
|
||||
plateArr = []
|
||||
|
||||
|
||||
def changePlate():
|
||||
if plateArr and len(plateArr) > 0:
|
||||
if randrange(30) == 17:
|
||||
@ -63,6 +64,7 @@ if __name__ == "__main__":
|
||||
randomPlate = randrange(5) + 10
|
||||
plate.changePlate('plate-empty.png', 'test-{}'.format(randomPlate))
|
||||
|
||||
|
||||
while True:
|
||||
changePlate()
|
||||
|
||||
@ -200,7 +202,6 @@ if __name__ == "__main__":
|
||||
path = waiter.translatePath(path)
|
||||
fromBar = 0
|
||||
|
||||
|
||||
if path != '':
|
||||
nextStep = path[0]
|
||||
path = path[1:]
|
||||
|
Loading…
Reference in New Issue
Block a user