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

Ғылым және технология

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_Mang4 жыл бұрын

    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.

  • @90hijacked
    @90hijacked4 жыл бұрын

    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 )

  • @zinsy23
    @zinsy234 жыл бұрын

    Love these type of videos! Definitely continue!

  • @joshuahabash8572
    @joshuahabash85724 жыл бұрын

    Great video engineer man. These kinds of videos motivate me to keep on learning and using python coz it is fun.

  • @brandonbrand2338
    @brandonbrand23384 жыл бұрын

    This is so freaken awesome EM! always looking out for your videos...

  • @JustSomeAussie1
    @JustSomeAussie14 жыл бұрын

    Within the developer tools on android, you can enable root for ADB without having to actually root your phone.

  • @jackpooper7412
    @jackpooper74124 жыл бұрын

    please keep making these game automations theyre super interesting

  • @amirroohi4566
    @amirroohi45664 жыл бұрын

    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.

  • @StudySessionYT
    @StudySessionYT4 жыл бұрын

    Love these videos, thanks for creating them!

  • @ramgopalvarma5949
    @ramgopalvarma59494 жыл бұрын

    Great way to learn Python Automation, loving this python game automation series.

  • @jonahwatts3008
    @jonahwatts30084 жыл бұрын

    Nice!!! Very informative and inspirational

  • @yashkamat4842
    @yashkamat48424 жыл бұрын

    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...

  • @pablodibildox441
    @pablodibildox4414 жыл бұрын

    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...

  • @RubyPiec
    @RubyPiec4 жыл бұрын

    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??

  • @ayamtaken2580
    @ayamtaken25802 жыл бұрын

    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

  • @avtarsingh2316
    @avtarsingh23164 жыл бұрын

    You deservs millions of subscribers.

  • @BakaliMampers
    @BakaliMampers4 жыл бұрын

    Could you explain how the capturing raw buffer thing you were talking about would work?

  • @heinekristensen9876
    @heinekristensen98762 жыл бұрын

    Great videos. I just have one question, how do you get the phone shown? Is it just the ADB driver you're using?

  • @ajeetadarsh2871
    @ajeetadarsh28714 жыл бұрын

    @Engineer man What I need the key point to consider the most while creating DBMS for a website? Please do reply.

  • @tanercoder1915
    @tanercoder19154 жыл бұрын

    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.

  • @ilovemygrill
    @ilovemygrill4 жыл бұрын

    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?

  • @bigjoepro75
    @bigjoepro754 жыл бұрын

    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
    @GlennHamblin4 жыл бұрын

    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.

  • @GiacomoPerin
    @GiacomoPerin4 жыл бұрын

    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

  • @thepositiveguy2768
    @thepositiveguy27684 жыл бұрын

    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?

  • @adiankonina
    @adiankonina4 жыл бұрын

    love your video

  • @Cicada-uv5se
    @Cicada-uv5se4 жыл бұрын

    @EngineerMan is there a way to use the windows terminal with atom?

  • @buak809
    @buak8093 жыл бұрын

    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? ?

  • @rokon1991
    @rokon19914 жыл бұрын

    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?

  • @djcaesar9114
    @djcaesar91144 жыл бұрын

    I consider that as ASMR. Thank you.

  • @LifelessNerd
    @LifelessNerd4 жыл бұрын

    I LOVE THIS

  • @dannyboi8433
    @dannyboi84334 жыл бұрын

    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
    @andrianharrykennethwong11154 жыл бұрын

    What code editor did he use

  • @davidmace1856
    @davidmace18564 жыл бұрын

    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

  • @royz_1
    @royz_14 жыл бұрын

    That was awesome! but what's the point of creating a bumpy array and then getting the value from 3 layers deep?

  • @misterMboy97
    @misterMboy974 жыл бұрын

    Really cool :)

  • @keepercool98
    @keepercool984 жыл бұрын

    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!

  • @Brickkzz
    @Brickkzz4 жыл бұрын

    Yes! Another OnePlus owner!

  • @kbodka
    @kbodka4 жыл бұрын

    Hi, can I use mss in order to get screenshots from real android devices?

  • @--3D
    @--3D3 жыл бұрын

    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 🙏

  • @tomanant5867
    @tomanant58674 жыл бұрын

    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).

  • @mrkinaujr3072
    @mrkinaujr30724 жыл бұрын

    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! :)

  • @ashwinanayar8404
    @ashwinanayar84044 жыл бұрын

    oh yeah !

  • @mmartel99
    @mmartel993 жыл бұрын

    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

  • @yomajo
    @yomajo4 жыл бұрын

    Fun trivia: Pretty sure "Simon Says" game name was insipred by Die Hard 3 movie

  • @grizthegriffdog9939
    @grizthegriffdog99394 жыл бұрын

    keep em comin!

  • @typicaljoey5583
    @typicaljoey55834 жыл бұрын

    Can you please make a video on how in download adb

  • @achna_540
    @achna_5403 жыл бұрын

    what program do you use?

  • @marnotto8269
    @marnotto82694 жыл бұрын

    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.

  • @exelbernardi6493
    @exelbernardi64936 ай бұрын

    if i use emulator for root, how i get fast screeencap?

  • @Unst0pableGamer
    @Unst0pableGamer4 жыл бұрын

    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
    @christianloizou44634 жыл бұрын

    Anyone know how to get this emulator set up?

  • @bringthexo7out
    @bringthexo7out4 жыл бұрын

    Do a tutorial about what apps are you using

  • @jinangshah991
    @jinangshah9913 жыл бұрын

    What is ppad.client?

  • @tanmaysinghal8370
    @tanmaysinghal83704 жыл бұрын

    Which emulator is he using in which pixels can also be seen?

  • @garrysingh4484
    @garrysingh44844 жыл бұрын

    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!

  • @betacookie
    @betacookie4 жыл бұрын

    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

  • @MDAdil-bc6mv
    @MDAdil-bc6mv4 жыл бұрын

    game link please

  • @labr2386
    @labr23863 жыл бұрын

    may i ask how you mirror the screen?

  • @user-hx7dc9uz6s

    @user-hx7dc9uz6s

    3 жыл бұрын

    with scrcpy

  • @RobinsonLiech
    @RobinsonLiech4 жыл бұрын

    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.

  • @desifunzone152
    @desifunzone1523 жыл бұрын

    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

  • @JP-td8gt
    @JP-td8gt4 жыл бұрын

    Hello, can you do android game automation for mini golf king? That might be a challenging one.

  • @BitCloud047
    @BitCloud0473 жыл бұрын

    Yeah I need to know how to hook up my andriod to my pc like this?? airdriod air aint cutting it.

  • @Oliver-nb2iu
    @Oliver-nb2iu4 жыл бұрын

    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

  • @halfthehalfer
    @halfthehalfer3 жыл бұрын

    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

  • @geeKsParthiban
    @geeKsParthiban3 жыл бұрын

    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

  • @georgehammond867
    @georgehammond8674 жыл бұрын

    Why not just Import Client...instead of off ( from ppadb.client)?

  • @anasbahi8371
    @anasbahi83714 жыл бұрын

    Can make videos of package we can learn every videos i see a new import

  • @beb9632
    @beb96324 жыл бұрын

    Very impressive but can you automate Scream Go Hero ?

  • @slendi9623
    @slendi96234 жыл бұрын

    I knew it!

  • @jimmbimm2939
    @jimmbimm29392 жыл бұрын

    it's hillarious

  • @supergamerfr
    @supergamerfr4 жыл бұрын

    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

  • @Katatonya
    @Katatonya4 жыл бұрын

    I wanted a way to get instant screenshots, this is it, wanted to tacke a more challenging game, subway surfer, that needed instant response

  • @u12blue
    @u12blue3 жыл бұрын

    Can you automate autofishing in some games?

  • @thepurplesmurf
    @thepurplesmurf4 жыл бұрын

    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! 👍

  • @Denis-np3mn
    @Denis-np3mn Жыл бұрын

    I need a emulate all in android and just on a device. Python is a good idea.

  • @dieweltentdecker5878
    @dieweltentdecker58784 жыл бұрын

    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.

  • @aryanbhatia6992
    @aryanbhatia69924 жыл бұрын

    Please do Tower Twist

  • @PotatoMan1491
    @PotatoMan14913 жыл бұрын

    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 😊

  • @SuperHamsters777
    @SuperHamsters7774 жыл бұрын

    I feel like I both know how to code really well and also don't know how to code at all.

  • @Taterzz
    @Taterzz3 жыл бұрын

    what coding program is he using here? it's way more useful than gedit.

  • @HaswellCore

    @HaswellCore

    2 жыл бұрын

    atom

  • @Amitbidermoon
    @Amitbidermoon4 жыл бұрын

    Does this guy ever gets errors?

  • @GamErPlayer32
    @GamErPlayer324 жыл бұрын

    Make a auto chess using basic ai

  • @Ilovecarrot
    @Ilovecarrot4 жыл бұрын

    please next time piano tiles 2

  • @SkidxD
    @SkidxD4 жыл бұрын

    It's just called Simon, Simon Says is a totally different game...half the app store is incorrect

  • @GordonChil
    @GordonChil3 жыл бұрын

    The game is just called "Simon". It's not called "Simon Says".

  • @davidlindblom88
    @davidlindblom884 жыл бұрын

    I know you will read this

  • @Willinat
    @Willinat3 жыл бұрын

    OMG hacker, get him banned!

  • @joosthoi1293
    @joosthoi12934 жыл бұрын

    haxorzZzzzZZZZzz take screenshot of monitor cheat installed, VAC BAN

  • @armaanmhate2911
    @armaanmhate29114 жыл бұрын

    HEART PLEASEEEEE

  • @csmckzhvn

    @csmckzhvn

    4 жыл бұрын

    ❤️ There you go!

Келесі