PDA

Bekijk Volledige Versie : Programmers’ Day



BB_Sious
13-09-18, 13:35
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 ;)

The_Ghost
13-09-18, 16:30
Prize_Crystal. Secret word: ornamentalsmith

NohomeNL
13-09-18, 16:36
ornamentalsmith

Flandernschlacht
13-09-18, 16:40
Secret word: ornamentalsmith

Juniper
13-09-18, 16:43
Ornamentalsmith

Geniet
13-09-18, 16:49
ornamentalsmith

Amir-Abd-Rahiem
13-09-18, 17:11
Ornamentelsmith

PollePil
13-09-18, 17:14
"ornamentelsmith"

Kendra
13-09-18, 17:15
Prize Crystal

ErwinR55
13-09-18, 17:17
ornamentalsmith

Kendra
13-09-18, 17:17
ornamentalsmit

ThaFizz
13-09-18, 17:22
ornamentalsmith

Kendra
13-09-18, 17:28
ornamentalsmith

Clarinda
13-09-18, 17:32
ornamentalsmith

Mediva
13-09-18, 17:33
Ornamentalsmith

Mediva
13-09-18, 17:45
Ornamentalsmith

BlackMedusa
13-09-18, 18:01
i come up with the ornamental smith :D

copycat
13-09-18, 18:23
ornamental smith

FinnFolcwada
13-09-18, 18:23
Secret word: ornamental smith

Lady-Elvira
13-09-18, 18:27
Secret word: "ornamental smith"

Koekie74
13-09-18, 18:55
het antwoord is: ornamentsmith

AntotnA
13-09-18, 19:12
I assume that thisstr4 (for example) will not be filled with the varieble Str1 but with Str4.
A development team should wil not allow it otherwise (but off course there can be questions about the naming convention, using Str1 to Str6 and thisstr1 to thisstr6)
My conclussion is that the results will be : orn + am + ent + al + sm + ith
So it will return
. Secret word: ornamentalsmith

Gratzky
13-09-18, 19:20
ornamental smith

Mr_Bart
13-09-18, 19:23
crystal ornamentalsmith

D-G-H
13-09-18, 19:28
ornamentalsmith

PistolePaultje
13-09-18, 19:34
Secret Word: ornamentalsmith

:-))

Jibanas
13-09-18, 20:04
ornamentalsmith

MiNoMa
13-09-18, 20:07
ornamentalsmith

Seth_de_Settler
13-09-18, 20:34
ORNAMENTALSMITH

Seth_de_Settler
Gilde ROCK

joachem
13-09-18, 20:42
ornamentalsmith

Eranou
13-09-18, 20:53
. Secret word: ornamentalsmith

BigBratG
13-09-18, 21:05
community manager = ornamentalsmith

Ruwaard
13-09-18, 21:27
Prize_Crystal . Secret word: ornamentalsmith

Hetty1
13-09-18, 21:44
code is Ornamentalsmith

JohnPijl
13-09-18, 21:55
ornamentalsmith

is het denk ik

Auwe_Gries
13-09-18, 22:11
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_Crystal)



Please note this is just a small "look" into a very complex theme. It is, in fact, not a "real" working code ;)

The answer is ornamentalsmith

bresan
13-09-18, 23:28
Geen idee of mijn antwoord werd geregistreerd, kreeg nl een wit scherm.
Dit levert een fout op omdat thisstr1, ... niet bestaan als variabelen en de variabele Prize_Crystal de ene keer meervoud is en de andere keer enkelvoud.

Als alles correct zou zijn is de oplossing:
. Secret word: ornamentalsmith

iruet
13-09-18, 23:32
ornamentalsmith

TomyGuns
14-09-18, 00:05
the answer is: ornamentalsmith

Frummeltje
14-09-18, 04:48
ornamentalsmith

Leonidasde17e
14-09-18, 05:17
Ornamentalsmith

tien1957
14-09-18, 06:12
ornamentalsmith

YgraYne
14-09-18, 06:59
ik denk dat er ornament al, smith uit de code komt

Groet,

ToYoSoFt

piapio
14-09-18, 07:21
ornamental smith

DaryllAnn
14-09-18, 07:21
Ornamentalsmith

psychon18
14-09-18, 07:24
ornamentalsmith

tweebmws
14-09-18, 07:26
ornamentalsmith

BertusBaardaap
14-09-18, 08:15
Assuming it is javascript, to make it work you have to correct some typos:

var Prize_Crystal;
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: '
+this.Str4+this.Str5+this.Str3+this.Str1+this.Str6 +this.Str2;
}
};
communitymanager.request(Prize_Crystal);

Now the result is: 'undefined. Secret word: ornamentalsmith'

SimonSnorremans
14-09-18, 08:18
. Secret word: ornamentalsmith

vuurtje2012
14-09-18, 08:35
Het hidden woord : ORNAMENTALSMITH
AFZ vUURTJE2012

Primeval
14-09-18, 09:06
ornamentalsmith

Aquarius
14-09-18, 09:33
ornamentalsmith

Soesano
14-09-18, 09:41
Secret word: ornamentalsmith

janniet
14-09-18, 09:53
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_Crystal)



Please note this is just a small "look" into a very complex theme. It is, in fact, not a "real" working code ;)

ornament al smal

janniet
14-09-18, 09:57
ornamentalsmith

Ruwaard
14-09-18, 10:09
Just as a side note for this code to work:
- the var Prize_Crystals does not have a value assigned to it, should be something like: var Prize_Crystals = "Prize Crystals"; (or a real value)
- the line: communitymanager.request (Prize_Crystal): "Prize_Crystal" is nowhere referenced, it should probably read as "Prize_Crystals"

Erinyyen
14-09-18, 10:39
. Secret word: “ornamentaismith

kristalletje
14-09-18, 11:07
ornament al smith

mijn_naam
14-09-18, 11:38
. Secret word: ornamentalsmith

Baas-Bart
14-09-18, 11:39
Ornamentalsmith

WIDTHBEARD
14-09-18, 11:45
ornamenthalsmith

Knakenduif
14-09-18, 11:49
ornamentalsmith

DarkRaider
14-09-18, 12:51
ornamentalsmith.

longmen99
14-09-18, 12:54
ornamentalsmith

Dannyk
14-09-18, 13:49
Het woord moet zijn ornamentalsmith.

Dolfie
14-09-18, 14:06
rattenhol

lynnlove12
14-09-18, 15:27
ornamentalsmith

Glaucis
14-09-18, 19:57
ornamental smith

rocas
14-09-18, 21:35
ornamentalsmith

SirJackOld
15-09-18, 08:49
The secret word I have discovered must be: ornamentalsmith

I jope I am right.
Greetings and thanx for this insight.
SirJackOld

BartSimpson
15-09-18, 11:36
Ornamentalsmith

Gentleem
15-09-18, 15:25
Secret Word is "Ornamental smith"

Kingpaul
15-09-18, 17:19
Ornamentalsmith

theprent
15-09-18, 20:17
Prize_crystals := TRUE;

IF Prize_Crystals
then PRINT " . secret word: ornamentalsmith";
ENDIF;

settler_bb74
16-09-18, 00:13
. Secret word: ornamentalsmith

JJWW
16-09-18, 16:03
Secret word: ornamentalsmith

Counterdutch
16-09-18, 16:18
ornamenthalsmith

Panoramix77
16-09-18, 17:16
Secret word: ornamentalsmith
I hope the settlers server code is not written like this. I would explain the frequent maintenance otherwise :-)

Noushka
17-09-18, 05:34
ornamentalsmith

Marmit
17-09-18, 05:34
ornamentalsmith

Bumchuck
17-09-18, 06:21
.Secret word: ornamentalsmith

matahari
17-09-18, 09:52
Ornament

BB_Sious
17-09-18, 15:07
Dear settlers,

We hope you enjoyed your time figuring out the 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

P.S. As previously mentioned, this is not a "real" working code and it definitely cannot be used in any game :p