Random move
Hello, I have a problem with code....
I make a farm bot for a game... and Im trying to make it little bit more random.
and my random move doesnt work... Its get stuck and doesnt move with screen
Can you help me please where I make a misstake?
Thanks for answer
this is my codeimport random
Settings.
Z1 = Region(
Z2 = Region(
Z3 = Region(
for z in range (10):
for x in range (1000 ) :
rndtime = random.
rndtime = rndtime/1000
if exists(
while exists(
z=z+1
else:
if Z1.exists(
if exists(
else:
if exists(
else:
wd = int(Z3.w * random.random())
hd = int(Z3.h * random.random())
wu = int(Z3.w * random.random())
hu = int(Z3.w * random.random())
Thanks for help
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Antonín Ušelík
- Solved:
- Last query:
- Last reply: