Get the latest Education e-news
 
  • Results From Game Design Challenge: Get Organized!

    [04.24.18]
    - Danny Cowan

  • Xavier Ekkel, Experimental Game Developer, Syntax Scramble

    Syntax Scramble is a game where lines of code have been scrambled by a malicious virus, and it is up to you to rearrange the code back into a logical and syntactically-correct order!

    The levels start simple, with simply rearranging parts of individual lines:  

    #include

    int main()

    {

       )   World   ;   "   (   printf   "   Hello

       return 0;

    }

    Solution: printf("Hello World");

    Then the levels get gradually more complex, with words/punctuation within individual lines being out of order AND the order of the lines being out of order as well: 

    {

    stdio.h   include   #   <   >

      )   World   ;   "   (   printf   "   Hello

      return   ;   0

    }

    main   (   int   )

    Solution:

    #include

    int main()

    {

       printf("Hello, World!");

       return 0;

    }

    You complete a level when you rearrange the code to its original state. Each level will award you stars based on your completion time, number of swaps, and (in some levels) rearranging the code in a creative way for a secret solution.

    This game can be used as a fun way to develop (pun intended) the programmer side of your brain, and could be adapted for any programming language!

Comments

comments powered by Disqus