Closed Thread
Results 1 to 1 of 1

Thread: Day of the Programmer

  1. #1
    Community Manager
    Ruler of the Land BB_Saqui's Avatar
    Join Date
    Aug 2016
    Posts
    1,641
    World
    Newfoundland

    Day of the Programmer

    Dear Settlers,

    Today is the day of the programmer! Have you always wondered what coding looks like and how it even works?
    Well, you can try to solve the following Code even without being a programmer!


    • Solve the Code below: post your answer in this thread - it won't be visible to others until we provide the solution.



    Code:
    // If you can read this code, tell your Community Manager the secret word and win a small prize.
    
    Var	Prize_Crystals
    Var	reverse = function(s) {
         return s.split (“”)reverse( ).join(“”);
    }
    Var	communitymanager = {
        Str1: “al”,
        Str2: reverse(“hti”)
        Str3: reverse(“tne”)
        Str4:reverse(“nro”)
        Str5: “am”,
        Str6:reverse(“ms”)
    
        request: function(preference) {
             return preference + “. Secret word: “
             +thisstr4+thisstr5+thisstr3+thisstr1+thisstr6+thisstr2;
        }
    };
    communitymanager.request (Prize_Crystal)
    Please note this is just a small "look" into a very complex theme. It is, in fact, not a "real" working code

    EDIT: Well done to everyone who entered! The correct answer was "ornamentalsmith" - congratulations to those who got it right! The answers will be kept hidden for a little bit longer, as it better allows us to collate the winners and send out the rewards - expect them in your mailbox tomorrow during the course of the day!
    Last edited by BB_Saqui; Yesterday at 15:36.

Closed Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Ubisoft uses cookies to ensure that you get the best experience on our websites. By continuing to use this site you agree to accept these cookies. More info on our privacy.