Login | Register

RoboZZle Forums

Forums / Puzzles / Intricate math IV

Thread for puzzle Intricate math IV. Hints are OK, but please no full solutions.

I'm sorry for mistake in this puzzle. If A is odd then B = 0.

Smylic, 1 month ago.

I have been bothered for a while about some of your puzzles, I can't figure the pattern.

I'm sure this is not supposed to be a "guess the pattern" puzzle, but it is. Mentally trying out different interpretations of your guiding is a quite tedious job, the "wrong" kind of difficult.

The puzzle looks interesting, but I end up skipping it because I don't know what to do.

eBusiness, 1 month ago.

I don't like any "guess the pattern" puzzle. And I don't try to create such puzzle (in spite of simplicity of its creation). I always give reasonable hints of used pattern. In this puzzle I made a mistake in creation process, I failed to implement intended idea, so hint was wrong. But I fixed it in comments. One more time:

A is start to red, B is red to end.
if (A % 2 == 1)
B = 0;
else
{
B = A;
while (B % 2 == 0)
B /= 2;
}

If you don't know any programming language (except RoboZZle :)), read below the same, but in words. If A is odd, then B is zero. If A is even, then divide it by 2 while division result is integer and you'll get B.

If you don't understand puttern for some other my puzzle, don't be ashamed to ask for explanation.

Smylic, 1 month ago.

I understand the code, I just the loop meant that I had to use the resulting B of each iteration for something. I see that it is only the final value of B that one should use.

And by the way, 14 commands :-D
Your 26 commands have officially been pwned :-P

eBusiness, 1 month ago.

Nice puzzle! The 14 command-solution is awesome =)

qinn, 1 month ago.

My 14 length solution is rather funny:)

Smylic, 1 month ago.

Log in to comment.

©2009 Igor Ostrovsky and other contributors. Terms of use