Ghost in the Cell (aka Cyborg Uprising) - Puzzle Discussion

Thanks a lot for your quick response!

Glad to see the problem is known. I’ll wait for a solution being deployed, I’m not in a hurry.

Happy holidays to the staff!

Once a troop reaches its target, can its entityId be reused in future game loops? The inputs description seems to be missing this information.
Also, typo just before the Constraints section: “If you try to move more cyborgs than there are…”.

No, ids are unique incrementing numbers: Referee source. This applies to all entities, including cyborgs, bombs, and factories

I’m #1 in Wood1 got some optimizations to try and implement tomorrow to beat the boss.

OH! Got it already LOL

Just needed to make one change to my starting phase

the first input you have factory1 factor2 and the distance

1 Like

Hello everyone, i have some problems with performance. Is it a common problem or my code is just bad. If it is are there any solutions to improve my code?
--------error message
Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 13

at Player.main on line 50

at sun.reflect.NativeMethodAccessorImpl.invoke0 on line 0

at sun.reflect.NativeMethodAccessorImpl.invoke on line 62

at sun.reflect.DelegatingMethodAccessorImpl.invoke on line 43

at java.lang.reflect.Method.invoke on line 498

at com.cartser.codemachine.java.Bridge.main on line 36

Game information:

Timeout: the program did not provide 1 input lines in due time… sanyok2002 will no longer be active in this game.

Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 13

You do not have a performance issue, your program is crashing because you are trying to access data in an array outside of its boundaries. Then, of course, it does not response in due time :worried:

2 Likes

oh… I see. Thaks you

What does it mean for a troop to be 0.5 away from its destination?

if I recall well, it’s not possible

distance = turns / 2, so, 0.5 is 1 turn away

Hi,
I am kind of new to this. Is there a way to download Ghost in Cell code so I can train my own agent offline? Or do I have to build a gameplay simulator myself? If so, did anyone build it already (in Python)?

I would like to test/apply RL but don’t know how to get along.
Thanks

now that’s just sad… :wink:
image

Hello!

Just like Picani I’m having exactly the same timeout problem with clojure.

There’s a response saying it has been solved but I’m experiencing timeout about a third of the time on startup too.

Thanks for your help!

Hi everyone! Is Ghost in the Cell still playable? I cannot see any feedback when running my program. :frowning:

PS
changing browser helped :grinning: . I was using chrome. Works fine at firefox…

You could also try to clear cache etc. There was some problem in the site recently.

Could be because during the last moments, there was not anymore factories to attack (but still ennemy’s cyborg traveling) so your code may did send “wrong” order… Tips : a condition to tell your team to “wait” "if’ …

Hi, I’m kinda new to this game and coding in Python.
Currently I’m struggling at Ghost in the Cell
and I want to continue coding at this game because I love it.
Maybe someone can help me out a little.

I’d like to write a line:

  1. which prints/debugs the amount of Factories that I control
  2. which detects a neutral or enemy factory

That’s all. I Hope you can give me some tips or hints for it.
Have a nice day! :slight_smile:

In python3:
To print debug messages : print(“Debug messages…”, file=sys.stderr, flush=True)