Game about if else

Discussion about hacker.org's server
Post Reply
viksleepy
Posts: 6
Joined: Sat Jun 30, 2007 7:06 am

Game about if else

Post 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..
plope0726
Posts: 826
Joined: Mon Dec 15, 2008 10:13 pm

Re: Game about if else

Post 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
User avatar
PaRaDoX
Posts: 708
Joined: Fri Aug 22, 2008 5:52 am
Location: In your fridge, waiting to pop out and scare you.

Post 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?
Image

~You are a glitch in my reasoning.
User avatar
PaRaDoX
Posts: 708
Joined: Fri Aug 22, 2008 5:52 am
Location: In your fridge, waiting to pop out and scare you.

Post by PaRaDoX »

viksleepy, did you ask your friend if I'm right? :D

I'm curious :3
Image

~You are a glitch in my reasoning.
viksleepy
Posts: 6
Joined: Sat Jun 30, 2007 7:06 am

Post by viksleepy »

no PaRaDoX, it's still wrong.. any other idea..
User avatar
PaRaDoX
Posts: 708
Joined: Fri Aug 22, 2008 5:52 am
Location: In your fridge, waiting to pop out and scare you.

Post by PaRaDoX »

well nope. I'm stumped then :P

Just ask him for the answer + explanation?
Image

~You are a glitch in my reasoning.
User avatar
Partmedia
Posts: 13
Joined: Mon Aug 03, 2009 7:04 am
Location: Saint Louis, Missouri, USA

Re: Game about if else

Post 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.
User avatar
PaRaDoX
Posts: 708
Joined: Fri Aug 22, 2008 5:52 am
Location: In your fridge, waiting to pop out and scare you.

Re: Game about if else

Post 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.
Image

~You are a glitch in my reasoning.
User avatar
Partmedia
Posts: 13
Joined: Mon Aug 03, 2009 7:04 am
Location: Saint Louis, Missouri, USA

Post by Partmedia »

You do have a point there...
I'll see what I can come up with.
User avatar
PaRaDoX
Posts: 708
Joined: Fri Aug 22, 2008 5:52 am
Location: In your fridge, waiting to pop out and scare you.

Post 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.
Image

~You are a glitch in my reasoning.
Post Reply