I’ve found this little Android app called Hacked, while searching for coding games for my eldest son. This would be too advanced for him, but it’s certainly passed the time for me on my commutes.

Hacked is a great little coding game/app featuring a story mode and puzzle packs. You can also use it to code a virtual robot or your own game which you can then make available in the Hacked store.

You get scored based on coding mistakes, elegant code, and time it took to write. You can then compare your score to other Twitter friends, or on a global leaderboard.

It’s not particularly intuitive for beginners I’d have thought, as the learning curve is a little too steep. There are also some challenges in later levels that I struggled with. The logic I am fine with, it tends to be around what functions are available, e.g. converting strings to integers and back again.

I’ve started to post a few of my solutions, which are linked to below.

I also went to the trouble of creating a SyntaxHighlighter plugin specifically for “H” so that the code samples have a similar colour to what you’d see in the hackpad app itself. If you plan to blog your own H based scripts, you might want to grab that here: https://wordpress.org/plugins/syntaxhighlighter-evolved-h-brush/

More details about the app here: http://www.hackedapp.com/

Download from the Google Play store: https://play.google.com/store/apps/details?id=com.hackedapp

Story mode solutions

As I mentioned above, the learning curve is probably a bit steep for new coders. I didn’t just want to give you the answers outright. I’ve included hints to help where you might get stuck, all wrapped in spoiler tags. Teach a man (or woman) to fish! I’ve also included comments in the code blocks, which you can’t do in the app, but may help those who are just starting out with coding. Ignore them when typing them into the hackpad.

Note that while I tend to use the keyword “return” for better readability/understanding, you don’t need it when it’s the final action of your code, which will save you some keystrokes and score you more points.

[alsointhisseries series=”Hacked App story mode solutions”]

24 thoughts to “Hacked App – plus code solutions

  • Pingback: Hacked - A Game - Tennis Rally V1 - I am Andrew Johns

  • Mike

    Loved this post! Specifically:
    (A) way to go finding something for your son to sink his teeth into
    (B) awesome of you to share solutions
    (C) extra awesome of you to incl things like syntax highlighting comments and hints
    I hope you get a ton of good karma your way!

    Reply
  • Pingback: These Four Awesome Puzzle Games Help Decode Coding – Game Nooz

  • Pingback: These Four Awesome Puzzle Games Help Decode Coding | Roumor

  • Pingback: These Four Awesome Puzzle Games Help Decode Coding – U.N.I.C. TIMES

  • Pingback: These Four Awesome Puzzle Games Help Decode Coding | Play Must

  • Pingback: These Four Awesome Puzzle Games Help Decode Coding | RocksGame

  • Pingback: These Four Awesome Puzzle Games Help Decode Coding | Blog

  • Purv

    It’s URGENT!!!
    Which programming language do we need to know to play this game?
    Which progragramming language does it use?

    Reply
    • Alvin

      I wish to know too!

      Reply
    • Zito

      I think it’s C or C#. But I might be wrong.

      Reply
    • Coding Hazard

      Did you ever find out what language it is?

      Reply
    • Andrew

      It’s a custom language called “H”, but has similarities to various languages like javascript and, c#.

      Reply
  • Sochima Biereagu

    Hey Andrew john please do you know how i can program a functional Robot in the HackedApp game…i’m finding it difficult.

    Reply
  • Loic

    Hi, I was wondering why my code for the warm up puzzle only 3 doesn’t work:

    [hack]
    Var_a = [ ];
    Var_b = 1;
    Var_c = 1;

    While Var_c < input || Var_c == input {
    Var_a.push(3*Var_b);
    Var_b++;
    Var_c = 3*Var_b;
    }
    Return Var_a
    [/hack]

    Reply
  • gagan

    How to make robot

    Reply
    • Deaper

      HI, it seems that robot runs it’s program in a loop. And robot takes a point from the ground in the end of every iteration. Robot can’t remember anything from previous iteration. The only way is to use its location on the map.

      Reply
  • Juan Carlos

    Hi guys. I want to know how the game define the score for each puzzle.

    Reply
    • Andrew

      I can’t answer as I’m not a developer of the game, but it’s largely based on code length, time you took to code it, and the number of mistakes you made while getting to to the final answer. So a perfect score would be something you solved incredibly quick, works first time, and in the smallest amount of code you can manage.

      Reply
  • Tony

    Hi Andrew, I want to develop a map drag and drop puzzle game for IOS and Android platforms, can you advice on the best programming language to use to achieve this? Thanks

    Reply
  • Pingback: Computer, Games: Hacked app solutions | Kalamawi

  • Sara la enana

    ou fuck its a shit

    Reply
  • Ronny

    That’s a very good app.The language is easy if you are familiar with c# or java

    Reply
  • Vasco

    Im a bigginer and its very dificult for me to understand what is return someone can help me and put the begginer codes and a easy way to understand it pls!

    Reply

Leave a comment

Your email address will not be published. Required fields are marked *