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..
Game about if else
Re: Game about if else
That doesn't make sense... Hes doubling the numbers but he skips the number 2 it would make sense if it wentviksleepy 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..
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
- PaRaDoX
- Posts: 708
- Joined: Fri Aug 22, 2008 5:52 am
- Location: In your fridge, waiting to pop out and scare you.
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?
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?
~You are a glitch in my reasoning.
Re: Game about if else
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: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..
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.
- 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
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.Partmedia wrote: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: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..
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.
~You are a glitch in my reasoning.
- PaRaDoX
- Posts: 708
- Joined: Fri Aug 22, 2008 5:52 am
- Location: In your fridge, waiting to pop out and scare you.
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?
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.
and if you get nonsense change the environment variables accordingly?
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.
~You are a glitch in my reasoning.