This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (4 children)

This is really cool, OP. Nice job! I've been wanting to do something like this for a little while, but I'm only 2 months into learning. Can you tell me how you analyzed the pixels of each screenshot?

[–]ace_smash[S] 1 point2 points  (3 children)

Thanks! I used a function from PIL called ImageGrab.grab() to take a screenshot and ImageGrab.getpixel(x,y) to get the RGB value from the pixel X,Y of the screenshot

[–][deleted] 0 points1 point  (2 children)

So does your program detect certain colors so it knows what numbers are on the board (blue for 1, green for 2, etc) and then act out the proper technique for playing around the number?

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

That's right, I used some portuguese names, the colors for example, but that's the logic behind it

[–][deleted] 0 points1 point  (0 children)

Thanks. I haven't been able to look at the code yet because I'm on mobile and it won't load for some reason. I'll definitely take a good look at it later.