Page 1 of 1

Game about if else

Posted: Thu Jul 23, 2009 4:21 pm
by viksleepy
Hai.. My friend have a game and I don't know the answer. This is the game:
if 1 then 128
else if 4 then 256
else if 8 then 512
else if 16 then 1024
else if 32 then 2048
else if 64 then 4096
else if 128 then ???

My wrong answer is 8192. So give me idea..

Re: Game about if else

Posted: Thu Jul 23, 2009 5:29 pm
by plope0726
viksleepy wrote:Hai.. My friend have a game and I don't know the answer. This is the game:
if 1 then 128
else if 4 then 256
else if 8 then 512
else if 16 then 1024
else if 32 then 2048
else if 64 then 4096
else if 128 then ???

My wrong answer is 8192. So give me idea..
That doesn't make sense... Hes doubling the numbers but he skips the number 2 it would make sense if it went

if 1 then 128
if 2 then 256
if 4 then 512
if 8 then 1024
if 16 then 2048
if 32 then 4096
if 64 then 8192
if 128 then 16384

of course if that is not the case then it may be the inverse of if 1 then 128, in which case the answer should be 1

Posted: Thu Jul 23, 2009 5:59 pm
by PaRaDoX
It must be 128, IMO. It's basically saying if the input is 1, then go to the location marked 128 and do nothing. So if it is already at the "128" location in the file, (else if 128 then ??? ) then it would just stay there, and the answer would be else if 128 then 128.

The rest is just to confuse you.

else if 4 then 256
else if 8 then 512
else if 16 then 1024
else if 32 then 2048
else if 64 then 4096

This is to make your brain think it follows a pattern, but look how it's written as a script. Computers don't fill in blanks through patterns, they just to what they can :3

Like what plope said a pattern wouldn't make sense anyway.

I wonder if I'm right....

If not, maybe it just exits at 128?

Posted: Sat Jul 25, 2009 5:38 pm
by PaRaDoX
viksleepy, did you ask your friend if I'm right? :D

I'm curious :3

Posted: Mon Jul 27, 2009 8:39 am
by viksleepy
no PaRaDoX, it's still wrong.. any other idea..

Posted: Mon Jul 27, 2009 3:35 pm
by PaRaDoX
well nope. I'm stumped then :P

Just ask him for the answer + explanation?

Re: Game about if else

Posted: Mon Aug 03, 2009 7:55 am
by Partmedia
viksleepy wrote:Hai.. My friend have a game and I don't know the answer. This is the game:
if 1 then 128
else if 4 then 256
else if 8 then 512
else if 16 then 1024
else if 32 then 2048
else if 64 then 4096
else if 128 then ???

My wrong answer is 8192. So give me idea..
Note that these numbers are seen too much in the computer binary world. Note that 8 is 4 doubled, and that 512 is 256 doubled. An eight digit binary number is represented as:
0 - 0 - 0 - 0 -0-0-0-0
128-64-32-16-8-4-2-1
So the number one is: 00000001
Number two is: 00000010 Number three is: 00000011, and so on.

Re: Game about if else

Posted: Mon Aug 03, 2009 1:19 pm
by PaRaDoX
Partmedia wrote:
viksleepy wrote:Hai.. My friend have a game and I don't know the answer. This is the game:
if 1 then 128
else if 4 then 256
else if 8 then 512
else if 16 then 1024
else if 32 then 2048
else if 64 then 4096
else if 128 then ???

My wrong answer is 8192. So give me idea..
Note that these numbers are seen too much in the computer binary world. Note that 8 is 4 doubled, and that 512 is 256 doubled. An eight digit binary number is represented as:
0 - 0 - 0 - 0 -0-0-0-0
128-64-32-16-8-4-2-1
So the number one is: 00000001
Number two is: 00000010 Number three is: 00000011, and so on.
Yea, but if you think like that, it could be any number base. base-3, base-4, base-16, with binary just being base-2.

Posted: Tue Aug 04, 2009 6:27 am
by Partmedia
You do have a point there...
I'll see what I can come up with.

Posted: Tue Aug 04, 2009 3:22 pm
by PaRaDoX
Maybe the whole point is to put it into a modified script and see what happens o-o
and if you get nonsense change the environment variables accordingly?



:idea: The answer is that there is no answer and that you have to accept it and not let it eat your soul from the inside out.