Code VS Zombies - Optimization - Puzzle discussion

Continuing the discussion from Code VS Zombies - Optimization - Puzzle discussion:

Do you have in a plan realization of watching how other bots performing this? It would be very helpful, cause I have gain just 74k, but have no idea how others gain 1M points… Would be interesting just to see how others bots doing it, like in bot contests(TV). Sry for my english

I’ve passed all test cases, but after submitting, I didn’t pass the Rectangle case.

How can I fix it?

Hello :slight_smile:
I’m having this error randomly when I test my code (it’s in c#):
“/bin/bash: /opt/coderunner/dotnet/cg/csharp/build_debug.sh: No such file or directory”

When I say randomly I mean that it will happen on 4 different test every time.
Does anyone have an idea where it’s coming from ?
It’s pointing on the first line “using System;”
thank you

hello, wonderful.
A condition has to be added to win:

  • all zombies killed ==> ok
  • at least one human still living ==> ok
  • number of rounds <= 400

I am a little bit confused.
Do we have input every turn or just the first one.
x, y,human_count, human_id, human_x, human_y, zombie_count, zombie_id, zombie_x, zombie_y, zombie_xnext, zombie_ynext,

In the statement, you can see there is a section called Input for one game turn, and that means the variables mentioned there are provided to you every turn. The default code also reflects that.

1 Like

How to consider the combo in the fitness function on a GA for this game?

The score is your fitness function.

I do that

            int bonus = scorez ;
                    
            solret.score +=-distzh;
            
            solret.score += bonus + human.size()*10000000;

scorez contains the combo score, distzh distance to the best zombie.

@_CG_SaiksyApo I am facing an issue after submission. my code runs properly when i test but its showing that Split-second reflex this test case is failing. can you help me!!!