PDA

Ver la Versión Completa : Programmers’ Day



BB_Sious
13/09/2018, 15:35 PM
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.

https://ubistatic-a.akamaihd.net/0034/int/website/pictures/2018_08_01_worldwideweb.png
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.



// 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+this str2;
}
};
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 ;)

Gothem9362
13/09/2018, 17:50 PM
ornamental smith

mastertrabuko
13/09/2018, 17:58 PM
The answer is "ornamental smith"

SpawNick
13/09/2018, 17:59 PM
Ornamental Smith

Kampesino
13/09/2018, 18:06 PM
ornamentalsmith

SilVaM
13/09/2018, 18:14 PM
Si la variable se define como


Var Prize_Crystals

y la función es :


communitymanager.request (Prize_crystal)

entonces hay un error de parse dado que no coinciden ambas variables.

Si obviamos todo eso, la respuesta es:

ornamental smith

Ducatine
13/09/2018, 18:19 PM
Ornamentalsmith

Keko5000
13/09/2018, 18:20 PM
ornamentalsmith

YACK5000
13/09/2018, 18:23 PM
Buenas tardes, la respuesta correcta es: "ornamentalsmith".
Saludos.

Skinbroiler
13/09/2018, 18:32 PM
Hi there!

I think that's Javascript language. I only studied Python, but I guess the word is "ornamental smith". The reverse function does what the name says, reverse the string. Therefore,
Str1 = al
Str2 = ith
Str3 = ent
Str4 = orn
Str5 = am
Str6 = sm

Finally, the code concatenate the strings in this order: 4,5,3,1,6,2
obtaining: orn+am+ent+al+sm+ith

Thank you for the challenge!

Menhir
13/09/2018, 19:44 PM
The secret word is: ornamentalsmith

Menhir
13/09/2018, 19:46 PM
The secret word is: ornamentalsmith

Regards!

RUT19
13/09/2018, 20:33 PM
the secret word is "ornamentalsmith".

LordPacus
13/09/2018, 20:34 PM
Str1: “al”,

almusafr
13/09/2018, 20:48 PM
Hi,

as you can see in the code, the answer is:
Prize_Crystal. Secret word: ornamentalsmith

Thanks for this funny game. Have a nice day.

Greetings from Madrid

almusafr
Note: A warm greeting to all the Ubisoft (Blue Byte) team, especially the development team from a Settlers online gamer and 25 years IT worker: cloud solutions architect, IT/OT consultant, analyst, programmer (assembler, C, C++, Pascal, Delphi, Prolog, PHP, SQL, Java, Python). I'll never recognize that I was able to program in Cobol, long (long) time ago, hahaha

Desastrix
13/09/2018, 20:53 PM
ornamental smith

Soy Desastrix

Trescatorceli
13/09/2018, 20:55 PM
Secret word: ornamentalsmith

Milkysi
13/09/2018, 20:57 PM
Creo que seria algo como
Secret word: ornamentalsmith

Relaxincup
13/09/2018, 21:00 PM
la frase es - Secret word: ornamentalsmith

Calineska
13/09/2018, 21:02 PM
ornsoyentalsmith

humano2006
13/09/2018, 21:14 PM
. Secret word: ornamentalsmith

Marriet
13/09/2018, 21:35 PM
Secret word: ornamentalsmith. (es decir un posible nuevo edificio de libros)

Calineska
13/09/2018, 21:37 PM
ornamental smith

Teucre
13/09/2018, 21:49 PM
ornamentalsmith

Joeldca2
13/09/2018, 21:58 PM
Buenas tardes/noches a toda la comunidad, espero sea esta la respuesta:

. Secret word: ornamentalsmith


Gracias :)

Fheyla
13/09/2018, 22:17 PM
ornamentalsmith

EDES
13/09/2018, 22:22 PM
Felicidades a todos los programadores!!!

La palabra secreta es= Ornamentalsmith :cool:

Red_Jones
13/09/2018, 22:29 PM
Aqui la respuesta

. Secret word: ornamentalsmith

EDES
13/09/2018, 22:45 PM
Hola




[CODE]

Str1: “al”,
Str2: reverse(“hti”)
Str3: reverse(“tne”)
Str4:reverse(“nro”)
Str5: “am”,
Str6:reverse(“ms”)


Str1= derecho "al"
Str5 = Derecho "am"

Al revés=
Str4 = revés = (“nro”)= orn
Str5: = derecho = “am”
Str3 = revés (“tne”) = ent
Str1= derecho = "al"
Str6 = revés = (“ms”) = sm
Str2 = revés = (“hti”) = ith

= Orn am ent al sm ith = Ornamentalsmith

Feliz día a los programadores! :cool:

collejo
13/09/2018, 22:48 PM
queridos settlerianos, yo soy carpintero asi que de programacion no tengo ni idea pero os puedo decir que hago unos muebles increibles jajajajajaja.
aprovecho para mandaros un abrazo grande a todos y desearos un buen juego.:D:D:D:D

Mighty_Tulkas
13/09/2018, 23:15 PM
The answer is ornamenthalsmith.

magico_libra
13/09/2018, 23:19 PM
. Secret word: ornamentalsmith

Kosky
13/09/2018, 23:25 PM
Mi respuesta es:

"Hello, world!"

Kos.

Harry-Sp
13/09/2018, 23:26 PM
Prize_Crystal. Secret word: ornamentalsmith

Kosky
13/09/2018, 23:40 PM
Mi respuesta es:

ornamental smith

KOs.

yomisma47
13/09/2018, 23:46 PM
ornamentalsmith, o orfebre en Español, buen juego

kondemor2
14/09/2018, 00:02 AM
ornamental smith

yuguyú
14/09/2018, 02:12 AM
ornamental smith

thyra6
14/09/2018, 03:37 AM
Secret word: ornamentalsmith

Cosica
14/09/2018, 18:48 PM
... ornamentalsmith (orfebre!!)

Cosica
14/09/2018, 18:58 PM
Las partes de la palabra secreta son:

Str1: “al”,................... [AL]
Str2: reverse (“hti”)......... [ITH] (al revés)
Str3: reverse (“tne”)......... [ENT] (al revés)
Str4: reverse (“nro”)......... [ORN] (al revés)
Str5: “am” ................... [AM]
Str6: reverse (“ms”).......... [MS]

Y el orden de la palabra secreta es:

“Secret word: +thisstr4 [ORN] +thisstr5 [AM] +thisstr3 [ENT] +thisstr1 [AL] +thisstr6 [SM] +thisstr2 [ITH]


Es que con la emoción de haberlo descubierto no he escrito el cómo!!

Cosa Mala.

Denekrus
14/09/2018, 22:09 PM
La respuesta es: . Secret word: ornamentalsmith

el-Maldito
15/09/2018, 11:01 AM
ornamentalsmith

Drizzt128
15/09/2018, 13:36 PM
Hello,
I think the secret word is:

ornamentalsmith

Bye!

CarNacKi
15/09/2018, 14:26 PM
Secret word: ornamental smith

vinivinci
16/09/2018, 01:36 AM
Greetings,

The solution is "ornamentalsmith"

Best regards.

Jaitower34
16/09/2018, 13:03 PM
ornamentalsmith

AMALAN
16/09/2018, 13:04 PM
ornamentalsmith

ivanrph
16/09/2018, 20:44 PM
Ornamentalsmith

Xana
16/09/2018, 21:02 PM
Ornamentalsmith

gAt0
17/09/2018, 08:56 AM
Hi, the code word is ornamentalsmith.

Tyron
17/09/2018, 13:06 PM
Ornamentalsmith

BB_Sious
17/09/2018, 17:16 PM
Dear settlers,

We hope you enjoyed your time figuring out the secret word from our fictitious code.

The code we are looking for is ornamentalsmith. Ornamental smith is also acceptable.

Players who got the correct answer will receive the prize via their in-game mail.

Thank you for your participation.

Happy Settling!
BB_Sious