Automating Android Games with Python: Simon Says (Top Score)

  Рет қаралды 66,840

Engineer Man

Engineer Man

Күн бұрын

Another game, another #1 placement. With Python and ADB, automating Simon Says is a breeze.
Hope you enjoyed the video!
Check out this code here:
github.com/engineer-man/youtu...
Join my Discord server to chat with me:
/ discord
Check out some code on my GitHub:
github.com/realtux
github.com/engineer-man/youtube
Come visit us on Reddit:
/ engineerman
Other Social:
/ _engineerman
/ engineermanyt

Пікірлер: 162
@The_Mang
@The_Mang 4 жыл бұрын
You should stream your experimenting process, I think it would be really interesting to watch you test different ideas and figure out the challenges of automating the specific games.
@zinsy23
@zinsy23 4 жыл бұрын
Love these type of videos! Definitely continue!
@90hijacked
@90hijacked 4 жыл бұрын
Many thanks for showing this off, looks like fun! I sincerely hope you've more videos on ADB and the various gadgets it has ( such as the input you've used here )
@joshuahabash8572
@joshuahabash8572 4 жыл бұрын
Great video engineer man. These kinds of videos motivate me to keep on learning and using python coz it is fun.
@brandonbrand2338
@brandonbrand2338 4 жыл бұрын
This is so freaken awesome EM! always looking out for your videos...
@StudySessionYT
@StudySessionYT 4 жыл бұрын
Love these videos, thanks for creating them!
@jackpooper7412
@jackpooper7412 4 жыл бұрын
please keep making these game automations theyre super interesting
@amirroohi4566
@amirroohi4566 4 жыл бұрын
Dude thats brutal, you could go on forever, sooooo nice. Please continue these types of videos, they are amazing
@LastRoze
@LastRoze 4 жыл бұрын
@Highly Caffienated Engineer It will not runs out of RAM since he clears the value each loop.
@ramgopalvarma5949
@ramgopalvarma5949 4 жыл бұрын
Great way to learn Python Automation, loving this python game automation series.
@JustSomeAussie1
@JustSomeAussie1 4 жыл бұрын
Within the developer tools on android, you can enable root for ADB without having to actually root your phone.
@jonahwatts3008
@jonahwatts3008 4 жыл бұрын
Nice!!! Very informative and inspirational
@yashkamat4842
@yashkamat4842 4 жыл бұрын
Hey engineer man! Love all your videos! By the way, how many fake emails did you send to that craigslist scammer till date?
@sarimbinwaseem
@sarimbinwaseem 4 жыл бұрын
I liked that video very much... that was awesome...
@avtarsingh2316
@avtarsingh2316 4 жыл бұрын
You deservs millions of subscribers.
@BakaliMampers
@BakaliMampers 4 жыл бұрын
Could you explain how the capturing raw buffer thing you were talking about would work?
@ayamtaken2580
@ayamtaken2580 2 жыл бұрын
Bro, you are a smart ass, and I can't even catch up to you, but I can't help but absorb the knowledge you're spewing
@heinekristensen9876
@heinekristensen9876 2 жыл бұрын
Great videos. I just have one question, how do you get the phone shown? Is it just the ADB driver you're using?
@pablodibildox441
@pablodibildox441 4 жыл бұрын
Hey EMAN, Please please please do a tutorial on how to set up everything so it looks the way you have it with the interactable emulator and the window which allows you to input commands rather than using the python IDE . I've been trying to set up the ADB and SDK with no success so far...
@ilovemygrill
@ilovemygrill 3 жыл бұрын
Hey Boss! i was wondering if i can get some help, there isnt much regrading the PPADB is that the same as nomral adb i can install? or is the pure python differernt, cause i cant install the pure python but the thing im wondering is how do i install the MSS it keeps saying i have python 2.7 but i have latest 3> any ideas?
@ajeetadarsh2871
@ajeetadarsh2871 4 жыл бұрын
@Engineer man What I need the key point to consider the most while creating DBMS for a website? Please do reply.
@RubyPiec
@RubyPiec 4 жыл бұрын
Can you do a tutorial on ADB (and how to get android on your pc)? I'll watch ALL of it
@breadoggo9353
@breadoggo9353 3 жыл бұрын
You can get an Android on a PC by just downloading an emulator
@RubyPiec
@RubyPiec 3 жыл бұрын
@@breadoggo9353 oh true
@aminou757
@aminou757 3 жыл бұрын
You can use scrcpy to get ur phone on pc and gain control from there ( even remotely) . It's available on github
@jerycaryy4342
@jerycaryy4342 3 жыл бұрын
Pc garbage. Linux > All other OS
@ram_rahim_creations_officials
@ram_rahim_creations_officials 3 жыл бұрын
@@aminou757 do u resolve this??
@bigjoepro75
@bigjoepro75 4 жыл бұрын
Me: "This is so awesome! I wonder how long it took him to work out the logic for this problem?" EM: "I came up with and implemented this approach in about thirty minutes..." Me: O_o
@tanmaysinghal8370
@tanmaysinghal8370 4 жыл бұрын
Yeah, i was thinking about, when i started learning Python.. That we need more of ideas for how to solve the problem rather than need to know about a language.
@Taterzz
@Taterzz 3 жыл бұрын
this is really all programming is. you have a problem, determine what data you need to work with, and knowing how to get that data to solve the problem. once you start thinking at the "basic building blocks" level, it becomes much easier.
@GlennHamblin
@GlennHamblin 4 жыл бұрын
So something like this must be the reason for the impossible solitaire scores I see all the time. 🙂 Folks winning a hand of solitaire in like 20 seconds.
@Cicada-uv5se
@Cicada-uv5se 4 жыл бұрын
@EngineerMan is there a way to use the windows terminal with atom?
@royz_1
@royz_1 4 жыл бұрын
That was awesome! but what's the point of creating a bumpy array and then getting the value from 3 layers deep?
@tanercoder1915
@tanercoder1915 4 жыл бұрын
thanks for the awesome vid! your tutorial start right on with ready setup of android app. how to set up android screen that you use on the left? can you point on a videos on your channel.appreciate.
@adiankonina
@adiankonina 4 жыл бұрын
love your video
@buak809
@buak809 3 жыл бұрын
I don't get one thing You define detecting and set it to False, similarly to what you did in Stick Hero but how exactly does program know what "detecting = False" is referring to, that it is cooperating with checking if one of the color rectangles are pressed or not? ?
@LifelessNerd
@LifelessNerd 4 жыл бұрын
I LOVE THIS
@rokon1991
@rokon1991 4 жыл бұрын
How do i pull android game data from android emulator? I want to automate android game. For that I need various information like health, inventory list, how much space left in inventory etc... I tried pyaotigui locate on screen function but it's not reliable... I want to pull accurate game data and process that data and perform task according to that data... How do i do that?
@thepositiveguy2768
@thepositiveguy2768 3 жыл бұрын
Thank you for the tutorial, very helpful, but I wanted to ask. When I use scrcpy to mirror my phone, I cannot run the command on the command prompt. Any Idea how to fix it?
@djcaesar9114
@djcaesar9114 4 жыл бұрын
I consider that as ASMR. Thank you.
@mmartel99
@mmartel99 3 жыл бұрын
The amount of times I’ve said I have working function, time to work on the next step and then have that function not work completely correctly is far too many. This guy has to be an A++ programmer for him to say that and have it be true
@GiacomoPerin
@GiacomoPerin 4 жыл бұрын
I'm stunned by the trick of editing multiple lines at once. Can you link me documentation about that?
@demipy
@demipy 4 жыл бұрын
Search for multicursor+eritor name on google there are lots of IDEs/Editor that have it either built in or a plugin for it
@ZacKoch
@ZacKoch 4 жыл бұрын
Depends on the editor, but usually called multicursor. He's quick with the shortcuts as well as editing magic so it looks insanely fast (it's still fast but the cuts make it look way quick)
@gafeht
@gafeht 4 жыл бұрын
Extra credit: look into vim
@srijanreddy9715
@srijanreddy9715 4 жыл бұрын
Try sublime
@theITGuy-no3nt
@theITGuy-no3nt 4 жыл бұрын
VS Code (the editor EM uses and I use as well) is brilliant at multi-line editing right out of the box. stackoverflow.com/questions/30037808/multiline-editing-in-visual-studio-code
@misterMboy97
@misterMboy97 4 жыл бұрын
Really cool :)
@ashwinanayar8404
@ashwinanayar8404 4 жыл бұрын
oh yeah !
@davidmace1856
@davidmace1856 4 жыл бұрын
Hello thanks for the video. I have a question : the window that allows you to see the phone's screen on the computer and to know coordinates of pixels of the phone, is it something included with adb, or is it an other software we need to install to have these functionnalities thanks for your replies...
@Katatonya
@Katatonya 4 жыл бұрын
the coordinates is just a setting in developer options, the screen idk, I'm curious too, might be an emulator, or any app that streams your screen to your pc
@rajdeepde7
@rajdeepde7 4 жыл бұрын
@@Katatonya Here, the controlling and mirroring of android might be done using SCRCPY. It's a wild guess though.
@fawadkhan9526
@fawadkhan9526 4 жыл бұрын
scrcpy is a linux program which allows you to stream your mobile screen your phone dicrectly to your pc with phone cable, worth check it out.
@brennanho9282
@brennanho9282 4 жыл бұрын
I asked this in the last video. You have to enable some setting on your android which would be something like "enable pointer" and "show tapping" in the developer options. Once enabled, you will see the coordinates and tapping in scrcpy.
@niggelgame
@niggelgame 4 жыл бұрын
@@fawadkhan9526 not only linux, it works on windows and macos too - I have it in my daily use-base
@yomajo
@yomajo 4 жыл бұрын
Fun trivia: Pretty sure "Simon Says" game name was insipred by Die Hard 3 movie
@dannyboi8433
@dannyboi8433 4 жыл бұрын
Is there any way of getting a live feed of the phone screen to use in automation captured without using without a rooted android phone?
@AtiqSamtia
@AtiqSamtia 4 жыл бұрын
Checkout scrcpy repo on github. it'll help you
@andrianharrykennethwong1115
@andrianharrykennethwong1115 4 жыл бұрын
What code editor did he use
@Brickkzz
@Brickkzz 4 жыл бұрын
Yes! Another OnePlus owner!
@keepercool98
@keepercool98 4 жыл бұрын
I don’t understand how can you have two while true loops simultaneously (6:35). Shouldn’t the program get stuck in the first one??? (I’m new to Python)
@keepercool98
@keepercool98 4 жыл бұрын
Highly Caffienated Engineer Oh OK, I missed that. Thank you!
@tomanant5867
@tomanant5867 4 жыл бұрын
Awesome stuff yet again... If someone wanted to set a challenge for an idea for a new app design, would you, or perhaps anyone in the comments here, care to give it a runnout? The idea is to build a split screen text/cam app. So the holder of the device can view through the camera what's ahead of him while texting. So many people use texting while walking, and my idea, and as far as a I know it's not been done before, is to split the screen to view in front while texting. Challenge offered may bring in monetary rewards because I've time stamped the idea already, and it 'should' be massively popular. Everyone I've spoken to says they'd use it. Cheers. (BTW this is something I've only posted on here and I hope EM is OK with me doing this, I'd love to see it built, thanks again).
@typicaljoey5583
@typicaljoey5583 4 жыл бұрын
Can you please make a video on how in download adb
@marnotto8269
@marnotto8269 4 жыл бұрын
Is there any way to input more complex gestures? Swipe isn't cutting it for me, I want to know if there is a way to at least continue swiping throwards other pixels ;(
@marnotto8269
@marnotto8269 4 жыл бұрын
actually found out that ""sendevent" and "getevent" are the commands for that, im reading about it ktnr74.blogspot.com/2013/06/emulating-touchscreen-interaction-with.html
@EngineerMan
@EngineerMan 4 жыл бұрын
Generally speaking the events aim to mimic primitive actions. Press down, release, touch, swipe, hit the back button, etc. It's not intended to be a framework for complex automation.
@kbodka
@kbodka 4 жыл бұрын
Hi, can I use mss in order to get screenshots from real android devices?
@grizthegriffdog9939
@grizthegriffdog9939 4 жыл бұрын
keep em comin!
@Unst0pableGamer
@Unst0pableGamer 4 жыл бұрын
Is there an advantage or any certain reason to do: If not, then continue Vs if true, then break Just a curious question
@kam739
@kam739 4 жыл бұрын
I believe breaking will exit the loop as opposed to restarting the loop until detecting is false
@leocarvalho8051
@leocarvalho8051 4 жыл бұрын
continue skips the current iteration and break skips the loop entirely
@christianloizou4463
@christianloizou4463 4 жыл бұрын
Anyone know how to get this emulator set up?
@achna_540
@achna_540 3 жыл бұрын
what program do you use?
@--3D
@--3D 3 жыл бұрын
Wow awesome video!!! I'm trying to find some help on how to turn off a sonoff basic when the phone battery reaches 95% I got no clue on how to do something like that 🤔 Any help would be much appreciated thanks 🙏
@BitCloud047
@BitCloud047 3 жыл бұрын
Yeah I need to know how to hook up my andriod to my pc like this?? airdriod air aint cutting it.
@betacookie
@betacookie 4 жыл бұрын
Hey, I really want to beat your score but how do you mirror your android screen to your computer?
@AtiqSamtia
@AtiqSamtia 4 жыл бұрын
Its scrcpy github.com/Genymobile/scrcpy
@exelbernardi6493
@exelbernardi6493 5 ай бұрын
if i use emulator for root, how i get fast screeencap?
@tanmaysinghal8370
@tanmaysinghal8370 4 жыл бұрын
Which emulator is he using in which pixels can also be seen?
@geeKsParthiban
@geeKsParthiban 3 жыл бұрын
may I know the Android emulator you used
@user-hx7dc9uz6s
@user-hx7dc9uz6s 3 жыл бұрын
no emulator its scrcpy, it mirrors the phone screen via usb to your pc
@iPepper_
@iPepper_ 4 жыл бұрын
How did he type/edit in multiple lines? around 2:30
@LuminousWatcher
@LuminousWatcher 4 жыл бұрын
I don't know in atom, but in vscode it's alt + click/ alt + cursor to select multiple lines/places
@maylife44
@maylife44 4 жыл бұрын
Powershell is ISE its Alt + Shift
@RobinsonLiech
@RobinsonLiech 4 жыл бұрын
Can you automate Candy Crush Saga or does this just work with simpler games
@EngineerMan
@EngineerMan 4 жыл бұрын
Given sufficient time and effort I suspect you can automate most things.
@Oliver-nb2iu
@Oliver-nb2iu 4 жыл бұрын
probably a good way to get real time frames from the android screen is this -> github.com/razumeiko/py-android-viewer . it uses scrcpy to get a video stream. you can also send swipe events
@mrkinaujr3072
@mrkinaujr3072 4 жыл бұрын
I saw your videos and got inspired myself. for a real time capture i kinda thought about using scrcpy from genymobile. Then port the client to python and then basiclly get a image from there. i didn't got it to work sadly tho.
@1996Pinocchio
@1996Pinocchio 4 жыл бұрын
Good job! You should try it with an other game! :)
@garrysingh4484
@garrysingh4484 4 жыл бұрын
Awesome Stuff ! 👍👍 What Editor Are You Using In This Video ??
@aditya95sriram
@aditya95sriram 4 жыл бұрын
Seems to be the Atom editor
@theITGuy-no3nt
@theITGuy-no3nt 4 жыл бұрын
VS Code. Best editor on the planet, IMO.
@theITGuy-no3nt
@theITGuy-no3nt 4 жыл бұрын
@@aditya95sriram No, it is VS Code.
@theITGuy-no3nt
@theITGuy-no3nt 4 жыл бұрын
Nope, I am wrong -- he is using Atom tricked out to look like VS Code Darkula in this one. My bad!
@theITGuy-no3nt
@theITGuy-no3nt 4 жыл бұрын
Nope, I am wrong -- he is using Atom tricked out to look like VS Code Darkula in this one. My bad!
@desifunzone152
@desifunzone152 3 жыл бұрын
Hi bro please give me a game bot tutorial Its simple game to point moving opposite of clockwise and anticlockwise when its come to front each other the press touch on phone
@MDAdil-bc6mv
@MDAdil-bc6mv 4 жыл бұрын
game link please
@bringthexo7out
@bringthexo7out 4 жыл бұрын
Do a tutorial about what apps are you using
@labr2386
@labr2386 3 жыл бұрын
may i ask how you mirror the screen?
@user-hx7dc9uz6s
@user-hx7dc9uz6s 3 жыл бұрын
with scrcpy
@thepurplesmurf
@thepurplesmurf 4 жыл бұрын
EEM strikes again 😈 I'm pretty sure that when the mobile gaming market shuts down in about a year from now on, it's because of EEM (Evil Engineer Man) cheated his way to top1 on the leaderboards in every single game out there. People will get frustrated that they can't beat 'The Myth' in any game and stop playing to avoid going insane. On a serious note, these 'how to cheat' videos are a great and creative way of creating tutorials for real world coding problems. Keep it up! 👍
@Katatonya
@Katatonya 4 жыл бұрын
I wanted a way to get instant screenshots, this is it, wanted to tacke a more challenging game, subway surfer, that needed instant response
@JP-td8gt
@JP-td8gt 4 жыл бұрын
Hello, can you do android game automation for mini golf king? That might be a challenging one.
@jinangshah991
@jinangshah991 3 жыл бұрын
What is ppad.client?
@beb9632
@beb9632 4 жыл бұрын
Very impressive but can you automate Scream Go Hero ?
@halfthehalfer
@halfthehalfer 3 жыл бұрын
Can you post the command you used to install ppadb?
@user-hx7dc9uz6s
@user-hx7dc9uz6s 3 жыл бұрын
pip install pure-python-adb please google first before asking... this was number 1 result
@Denis-np3mn
@Denis-np3mn Жыл бұрын
I need a emulate all in android and just on a device. Python is a good idea.
@u12blue
@u12blue 3 жыл бұрын
Can you automate autofishing in some games?
@jimmbimm2939
@jimmbimm2939 2 жыл бұрын
it's hillarious
@slendi9623
@slendi9623 4 жыл бұрын
I knew it!
@SuperHamsters777
@SuperHamsters777 4 жыл бұрын
I feel like I both know how to code really well and also don't know how to code at all.
@georgehammond867
@georgehammond867 4 жыл бұрын
Why not just Import Client...instead of off ( from ppadb.client)?
@dieweltentdecker5878
@dieweltentdecker5878 4 жыл бұрын
Can you make a AI over adb? PS: I love your Videos very much.
@balthazarfitzpatrick7770
@balthazarfitzpatrick7770 4 жыл бұрын
Two separate components here. ADB let's you interface and communicate with Android devices or shells, and of course you can build and train an AI that interacts with an app through adb.
@anasbahi8371
@anasbahi8371 4 жыл бұрын
Can make videos of package we can learn every videos i see a new import
@supergamerfr
@supergamerfr 4 жыл бұрын
It would be nice if you made a tutorial on how to use and to automate games for beginners. In the meantime I would love to know if you have some tutorials that you can refer me to. Best regarda
@1996Pinocchio
@1996Pinocchio 4 жыл бұрын
That's literally this series. Is there anything specific you want to know?
@1996Pinocchio
@1996Pinocchio 4 жыл бұрын
@Stream Highlights He said in a comment that he was using scrcpy github.com/Genymobile/scrcpy
@aryanbhatia6992
@aryanbhatia6992 4 жыл бұрын
Please do Tower Twist
@PotatoMan1491
@PotatoMan1491 3 жыл бұрын
Can someone share how he does the hotkey trick from 2:18 - 2:15
@EngineerMan
@EngineerMan 3 жыл бұрын
Ctrl-X while the cursor is on the line to delete.
@PotatoMan1491
@PotatoMan1491 3 жыл бұрын
@@EngineerMan thanks mate, I was referring to the Alt + J then edit in sync, good demonstration, that comes in handy 😊
@Taterzz
@Taterzz 3 жыл бұрын
what coding program is he using here? it's way more useful than gedit.
@HaswellCore
@HaswellCore 2 жыл бұрын
atom
@Ilovecarrot
@Ilovecarrot 4 жыл бұрын
please next time piano tiles 2
@GamErPlayer32
@GamErPlayer32 4 жыл бұрын
Make a auto chess using basic ai
@SkidxD
@SkidxD 4 жыл бұрын
It's just called Simon, Simon Says is a totally different game...half the app store is incorrect
@Amitbidermoon
@Amitbidermoon 4 жыл бұрын
Does this guy ever gets errors?
@GordonChil
@GordonChil 3 жыл бұрын
The game is just called "Simon". It's not called "Simon Says".
@davidlindblom88
@davidlindblom88 4 жыл бұрын
I know you will read this
@Willinat
@Willinat 3 жыл бұрын
OMG hacker, get him banned!
@joosthoi1293
@joosthoi1293 4 жыл бұрын
haxorzZzzzZZZZzz take screenshot of monitor cheat installed, VAC BAN
@armaanmhate2911
@armaanmhate2911 4 жыл бұрын
HEART PLEASEEEEE
@csmckzhvn
@csmckzhvn 4 жыл бұрын
❤️ There you go!
Automating Android Games with Python and OpenCV: Pong
11:55
Engineer Man
Рет қаралды 48 М.
I Spent 100 HOURS Making a Game With NO GAME ENGINE
13:42
Fuelvin
Рет қаралды 330 М.
Каха и суп
00:39
К-Media
Рет қаралды 2,7 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 59 МЛН
Using My Python Skills To Punish Credit Card Scammers
7:13
Engineer Man
Рет қаралды 4,9 МЛН
Automating Android Basketball So Hard The Dunks Never Stop
8:13
Engineer Man
Рет қаралды 37 М.
Automating Android Games with Python: Stick Hero
15:22
Engineer Man
Рет қаралды 382 М.
Engineer Breaks Down Hollywood Programming Scenes
11:02
Engineer Man
Рет қаралды 22 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 376 М.
Automating Android Games with ADB: Bowling King (Perfect Games)
7:23
Top 18 Most Useful Python Modules
10:50
Tech With Tim
Рет қаралды 925 М.
How I make bots using python (educational)
17:12
Kian Brose
Рет қаралды 530 М.
An Introduction to Software Design - With Python
34:05
Tech With Tim
Рет қаралды 513 М.
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1,1 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,9 МЛН
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 17 МЛН