Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Odd Ball Challengeby Limbic~Region (Chancellor) |
on Jun 23, 2005 at 22:09 UTC ( [id://469545]=note: print w/replies, xml ) | Need Help?? |
kaif,
I think you misunderstood the challenge and wrote a solution to the riddle instead. You are supposed to start out not knowing how to solve the riddle and write code that tells you how. The bonus was to have the code smart enough to understand whatever it outputted and generate a solution (such as the one you provided). Let me try and be clearer this time since it was likely my fault. You start out knowing only the rules of riddle. You right code that starts searching for combinations of groupings and weighings that keeps track of what knowledge it has gained along the way. Eventually it has enough information to say:
I am not real particular in how that information is conveyed but it would be really cool if once the code reaches its conclusion it is smart enough to understand its own output and also generate code to execute the steps. Cheers - L~R
In Section
Meditations
|
|