Passively, explorers lose 1 sanity each turn due to the fear caused by the environment.
When another explorer is up to 2 cells away from you, even if there is a wall in between, you reassure each other and thus lose only 1 sanity instead .
Shelters start with 10 energy . A shelter loses 1 energy each time it reassures an explorer, until it has no more energy. When it runs out of energy, it can no longer restore confidence to anyone before being fully refilled. Shelters get refilled to 10 every 50 turns.
But the display indicates that no energy is available until frame 200/turn 50. Is this correct?
When an explorer dies while being in a PLAN area, they heal after death and regain health.
cf this replay for the green player: https://www.codingame.com/share-replay/317418937
This does not change the ranking though.
Only the viewer seems to be affected (left part summing up explorers and display of the ranking at the end, showing “45 turns + 6 sanity”).
The rules says that if two paths have the same length, then the wanderer will use directions in the following order of preference : UP, RIGHT, DOWN, LEFT.
However, at turn 18, wanderer 6 (at 1,11), targeting explorer 3 (at 9,7), which is 12 steps away both using the path going UP (1,10) and the path going RIGHT (2,11), choose to go RIGHT instead of UP. Even if we take into account the explorer movement (going UP), it shouldn’t change the paths.
Is there something wrong with my assumptions?
EDIT: Then, on the same replay, at turn 78, the wanderer 16, in almost the same situation, choose to go UP instead of RIGHT.
Sorry, we changed the preferences and forgot to update the statement:
the initial preference is URDL (at turn 0).
But each turn it shifts by one (RDLU, DLUR, …).
The reason is that otherwise a player left to a minion could just go UDUDUD and the minion would do the same without ever going left. A player starting at the right can’t do that, resulting in an unfairness.
You can see the shifting here in the code.
In this replay I crash and finish 4th even though I would have been at least 2nd by just waiting. I believe this is contrary to how things have always been done on Codingame, and in my opinion this is not how it should be.
Hi,
maybe not a bug, but something not clear in rules:
step 265 - I have
Entity{id=11, x=18, y=16, entityType=SLASHER, param0=1, param1=2, param2=2}
so Slasher targets player with id=2
But at step 268 it attacks my hero (id=0) at (18, 10);
Based on rules (The slasher rushes instantly to the target if the target is still in line of sight, or rushes to the last seen position of the target.) if played (id=2) leaves line of sight Slasher should attack it’s last point (18, 12), why it moves to (18, 10)?
I need help! Where can I check the description for a previous league?
I modified my code so it advanced into wood 2 last night. But this morning I found I’ve advanced to wood1, but I need to know about what’s new in wood2 to improve…