Hello,
Today I was browsing the Google play store and recommended for me was a game called "Hacked". I clicked on it out of curiosity and it turns out that it is actually good. I haven't gotten too far yet, and I don't know if you could really call it a "hacking" game from what I've seen, but it gives you puzzles where you write actual code.
It does stuff like say say "Your friend brought you his phone to jailbreak" and then give you a puzzle to write a program that returns the largest value out of an inputted list. I would say that it'd be a good way to learn programming, but it's probably not for complete beginners.
http://www.hackedapp.com/