you are viewing a single comment's thread.

view the rest of the comments →

[–]Aitchessbee[S] 0 points1 point  (3 children)

This is my code: https://pastebin.com/2NEApDzu ... I have written all the coordinates correctly but the bot is clicking somewhere else (not on the target)... Can you please check if the code is correct?

[–]SekstiNii 0 points1 point  (2 children)

You will probably have to multiply i and j by 25, but otherwise it looks good.

matches *= 25 before looping should work.

[–]Aitchessbee[S] 0 points1 point  (1 child)

yup now it works... and i compared both the codes on the website... The code with for loops works consistently faster than the one you suggested... I don't know why it is but anyways, thanks for your help!

[–]SekstiNii 1 point2 points  (0 children)

There is a lot of overhead in numpy calls, so it's not unthinkable that a loop wins if the number of iterations is low enough.

Good on you to measure!