Flash Flood

tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

tog wrote:How small has it really got to be?
Adum says his code runs about 10% faster on the Warmup. So, I think 17190 ( = 19100 * 0.9 ) can be a good aim.
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

I found my code also runs 10% faster on the Warmup one.

I tried how many extra cycles I could add to my code, and that was about 1200. It means my original code runs in about 17900 ( = 19100 - 1200 ) cycles.

16004 / 17900 = 0.894...
gfoot
Posts: 269
Joined: Wed Sep 05, 2007 11:34 pm
Location: Brighton, UK

Post by gfoot »

I was still failing Flash Flood with a warmup count of 17085. I made an optimisation, though, and got my warmup count down to 16666, and finally passed Flash Flood.

I was tempted to set up a search process to work out exactly what the board looks like, but that would be abuse. :)

You do still get a descriptive error message if you fail to flood correctly. Maybe adum changed it back?

I'd also like to suggest maybe a version with the same map and same 19100 cycle limit, but a maximum program size of 128 instructions...
the_impaler
Posts: 61
Joined: Wed Apr 30, 2008 3:31 am

Post by the_impaler »

As I understand now if you run out of cycles then python HVM throws exception and it is treated as any other exceptions with message "failed to run correctly". To show a different message hackvm.py should have exception handler for max-cycles and that would be overkill . After all, "user friendly" is not in hacker dictionary, it would be hard to put it in design specs.
And I am not yet passed Warmup stage...
tog
Posts: 70
Joined: Fri Nov 14, 2008 11:23 am
Location: Germany

Post by tog »

Gosh, I *finally* made it. My program was accepted at the step from 17095 to 17028. On the way there it got really ugly. It seems totally crazy to me to get it below 17000!
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

Congratulations.

Your 'Surely Smallest Mouse' was as crazy as this one to me :)
homeas
Posts: 10
Joined: Thu Nov 13, 2008 11:17 pm

Post by homeas »

it wouldn't be bad to post at least the cycles for those programs, that manage this test map. My behemoth program with 480 ops needs 14855 cycles for the warm up map which was apparently good enought for this job -- but it needs over 22700 for a complete empty map (this could be further improved).
arthur
Posts: 21
Joined: Fri Jul 23, 2010 12:44 pm

Post by arthur »

homeas wrote:it wouldn't be bad to post at least the cycles for those programs, that manage this test map. My behemoth program with 480 ops needs 14855 cycles for the warm up map which was apparently good enought for this job -- but it needs over 22700 for a complete empty map (this could be further improved).
hey, 14413 cycles for the warm up
but the Tsunami challenge is really crazy :cry:
how many cycles for warm up will be ok for Tsunami?

EDIT: totally no idea for Aazhi Peralai challenge
lvhao945
Posts: 18
Joined: Fri Oct 14, 2011 10:18 am
Location: none

Post by lvhao945 »

Challenge 'Aazhi Peralai' .........I still insist it's impossible.......= =!
User avatar
Hippo
Posts: 339
Joined: Sat Feb 01, 2014 12:05 am
Location: Praha 5

Post by Hippo »

No idea for Aazhi as well ;)

[edit]I got it ;)[/edit]

Carefull reading of challenge textations helps to pass.
User avatar
Hippo
Posts: 339
Joined: Sat Feb 01, 2014 12:05 am
Location: Praha 5

Post by Hippo »

tog wrote:Gosh, I *finally* made it. My program was accepted at the step from 17095 to 17028. On the way there it got really ugly. It seems totally crazy to me to get it below 17000!
I were around 15300 on flood challenge with a very large code (loops are slow) (not all cycles were expanded ;)).
Post Reply