Scripting To Automate Your Mindless Android Games

There’s a silly little Android game making some noise on the Interwebs. It’s called Curiosity which is a 3D cube with something inside. The thing is, every single pixel on the cube must be clicked in order to get through a layer. There are of course multiple layers, and… well, you get the point. [Stephen] figures this is a perfect thing for a bit of scripting and set out to find a way to automatically play the Android game.

As you can see above he’s got a pretty good start. To use the script in its current form he finds a part of the cube that is mostly solid green. The Android device is plugged into a computer using the USB cable, and the Android Debug Bridge runs the script. It’s amazingly simple, as it uses the monkeyrunner package which comes with the SDK. The proof is there, and it’s just a matter of whether or not he wants to spend his time to fully automate the playing of the game. You can see a demo of the script embedded after the break.

[Stephen’s] not new to automating things that he doesn’t want to do himself. Here’s an example of his code beating the PlayThru CAPTCHA.

28 thoughts on “Scripting To Automate Your Mindless Android Games

  1. That was like my adventures with sudoku. I’ve discovered the game, thought it was nice, played about two games, wrote sudoku solver in php, abandoned sudoku. If there is simple algorithm to solve some game, where is the challenge?

    1. So you don’t play anything but maybe roleplaying games?
      After all you can easily automate pretty much every game.
      The challenge (of course not with this one, this one is just stupid) is to do it in your head.

      1. Yep, unfortunately it’s hard for me to find good game. Racing games are good, it takes some skill to play. Of course it’s only my private opinion, other people like other games.

    2. I agree, good games are tough. I’d like some good strategy games, like Go or something.

      I LOVE games like Call of Duty. But really, pay it once and that’s about it. I just don’t play them over and over.

      Kinda like Doom or something. You get through it, OK, now what? Sure, you could play over and over trying to beat your own score and find absolutely everything, and then look for cookies or hidden stuff. But I’d rather do other stuff.

    1. I like that idea. Would be fun to watch if it could be tuned to run fast, or use vector graphics to do swipes or something.

      I kinda want to hook this up to boggle/scrabble type games and pwn face.

      1. Well I drew a couple of images with it and I guess nobody noticed ^^ But after taking a look at this MonkeyRunner-Scripts I will re-write my code to get a much better performance and draw larger images. Becuase handling this stuff with adb’s sendevent-command is really painfull

  2. Back in the late 1980s I wrote some SALT scripts for Telix that could play a number of BBS games. I set it up to autodial all the local BBSs, max out the number of turns and then hang up. I managed to get the #1 ranking on the lesser-used boards in a few weeks, and just about all of them after a few months.

    Thanks for the memories…

  3. The game isn’t amazing but there are some fun things to learn along the way. Some areas holds much more gold than others and then there are ways to increase your harvesting by clearing the screen or getting multiplier bonuses. I think we’re also going to learn a lot more as the game progresses.

    There are also tools and things that you can buy to do more damage at a time.

  4. This type of thing can be a ton of fun with facebook games. I had a “word twist” bot that would destroy people in no time flat. I figure if I suck at the game, then use something I don’t suck at to my advantage.

    1. Yes for a long time you used to be able to bet actual money on Yahoo Games, so I used AIM (a macro software) that would identify Scrabble words by matching the pixel colors on the screen in a very basic form of text recognition. Then it would use a GET call to a scrabble dictionary website to play the game for me.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.