Flash Flood - buggy error message?

Post Reply
theStack
Posts: 72
Joined: Sun Nov 02, 2008 12:46 am

Flash Flood - buggy error message?

Post by theStack »

Hi folks,
I'm just trying around the Flash Flood challenges which are very interesting, but it seems kind of strange for me that the error message "failed to flood correctly" _always_ appears, even when the real reason is exceeding the cycle limit. My code definitely floods correctly because I used the same for the "Flash Flood warmup" challenge - the only difference in the sequel is the lower cycle limit.

Could it be that the challenge evaluation is kind of buggy? (maybe in connection with the server hack?) I'm asking that because the "Flash Flood warmup" challenge actually _does_ inform you when the cycle limit is exceeded, and the evaluation should exactly be the same, only with another cycle limit.

Want to try it out yourself?
Try to type in a simple endless loop "04-g" as solution in "Flash Flood warmup.". Result:
Array ( [result] => -1 [message] => too many cycles: 25002 (PC=1, STACK_SIZE=1) [output] => )
Cycle count: 25001
Submitting the same answer in "Flash Flood", however, results just in
'failed to flood correctly' is incorrect.
Strange, isn't it? :?:
cutter
Posts: 17
Joined: Mon Jan 12, 2009 12:50 pm

Post by cutter »

i also tried to solve it today and wondered that the error message is not that detailed like in the warmup challenge
i tried to solve the warmup challenge with my program and it took only about 17500 cycles to solve it
now i don't know whether there is a mistake in the program or the program is still too slow, so it would be usefull to know at least the number of cycles
gfoot
Posts: 269
Joined: Wed Sep 05, 2007 11:34 pm
Location: Brighton, UK

Post by gfoot »

I brought this up before - search for other "Flash Flood" threads. The lack of informative error messages is deliberate, to make the challenge harder in an obfuscated kind of way. It depends on the algorithm, but you do need to be well under the cycle limit on the warmup in order to pass Flash Flood, because the board is more complex. The other threads have warmup cycle counts for algorithms that do pass the main challenge.
theStack
Posts: 72
Joined: Sun Nov 02, 2008 12:46 am

Post by theStack »

@gfoot: Oh, you're right, thanks for the hint with the other thread (I should use the search function before posting in future :o ) - after reading the discussion I'm pretty sure now that my algorithm *does* flood correctly, but it simply takes too many cycles. Well, time to start happy optimizing :D
Post Reply