Closed Thread
Page 1 of 6 1 2 3 ... LastLast
Results 1 to 10 of 59

Thread: Programmers’ Day

  1. #1
    Community Manager BB_Sious's Avatar
    Join Date
    Mar 2017
    Posts
    1,147
    Monde
    Kouzelnictví

    Programmers’ Day

    Dear Settlers,

    Today is the day of the programmer. Have you always wondered how codes look like and how they even work?
    Well, you can try to solve the following Code even without being a programmer.


    • Give it a try and solve the Code. Post your answer in this thread.


    Note: Answers will stay hidden until September 17th at 13:00 CEST, this way everyone has a chance to become a coder.


    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_Crystals)
    Please note this is just a small "look" into a very complex theme. It is, in fact, not a "real" working code
    Last edited by BB_Sious; 14.09.18 at 14:00. Reason: typo
    Pokud potřebujete pomoc, prosím kontaktujte zákaznickou podporu, česky. Můžete se obrátit i na mě, ale prosím pouze anglicky.

  2. #2

    Join Date
    Feb 2013
    Posts
    19
    Monde
    Kouzelnictví
    ornamentalsmith

  3. #3
    Ravise's Avatar
    Join Date
    Dec 2012
    Posts
    443
    Monde
    Kouzelnictví

    Exclamation

    Parse error: syntax error, unexpected T_STRING, expecting T_OBJECT_OPERATOR in programmers_day_challenge on line 5.

    But I guess you want to hear ". Secret word: ornamentalsmith"

    PS: unused variables Prize_Crystals, Str1, Str2, Str3, Str4, Str5, Str6. Undeclared variables Prize_Crystal, thisstr1, thisstr2, thisstr3, thisstr4, thisstr5, thisstr6. Calling reverse() causes an infinite loop. This is indeed not a working code. And don't get me started about your coding style

  4. #4

    Join Date
    Jan 2018
    Posts
    17
    Monde
    Kouzelnictví
    ornamentalsmith

  5. #5

    Join Date
    Feb 2016
    Posts
    1
    Monde
    Kouzelnictví
    Secret word: ornamentalsmith

  6. #6

    Join Date
    Dec 2012
    Posts
    3
    Monde
    Kouzelnictví
    Secret word: ornamentalsmith

    But with assumption that your language has same rules like javascript the result will be "undefined". Because Prize_Crystals variable has undefined value and undefined + ". Secret word: ornamentalsmith" = "undefined"

  7. #7

    Join Date
    Aug 2016
    Posts
    4
    Monde
    Kouzelnictví
    Hi, there is my guess:

    ornamental smith

  8. #8

    Join Date
    Nov 2012
    Posts
    4
    Monde
    Kouzelnictví

    Secret word

    ornamentalsmith

  9. #9

    Join Date
    Dec 2012
    Posts
    2
    Monde
    Kouzelnictví
    ornamentalsmith

  10. #10

    Join Date
    Jan 2013
    Posts
    1
    Monde
    Kouzelnictví
    my eyes are bleeding, so let's try..
    Prize_Crystal. Secret word: ornamenalsmith

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

Společnost Ubisoft používá za účelem poskytnutí nejlepších zkušeností ze svých webových stránek soubory Ubisoft-Cookies. Pokračováním používání tohoto webu vyjadřujete souhlas s použitím souborů cookie. Další informace naleznete v našich zásadách ochrany soukromí.