So there’s a game on the Google Play Store and Apple App Store called Whoops! There Goes My Orange.
You play as an orange falling from the sky, and you have to avoid the red bars. Simple, right?
Yep! But rage-inducing.
Anyway, so I decided to have a crack at writing some sort of AI for this game…
It’d just be a collision avoidance algorithm… not really an AI.
Summarised something like this
if (aboutToCrash) {
dont();
}
And here’s a little demo…
39.4 seconds, 2nd place - not bad!
The sort of data you’d need for analysis…
Speaking of which…
Oh hey, that’s me (#10)…
But wait, that’s also me (#8), and me (#9)… –> wow I suck, even my AI (#2) beat me…
To store the high scores online, there must be some database…
If we have a look at the network activity from this application, we get this URL: http://nomossgames.com/whoops/score.php
.
It’s got some sort of anti-spam prevention.
It requires a secret
query argument, as well as a secret
body argument (POST).
So then I was able to do something like this:
curl "http://nomossgames.com/whoops/score.php?secret=[QUERY_SECRET]" -d "score=26.16&secret=[POST_SECRET]&name=z5206677"
And, tada! I’m on the leaderboard!