Same here. Something is definitely wrong.
Same, I’ve been waiting 1h30
Hello, In Python, objects that are not referenced anymore are garbage collected right away. So no problem of memory (point 1), unless you keep old tiles somewhere… The only drawback of not updating old Tiles with same coordinates is the computing cost of creating one object. If you have performance problems you could optimise here, but there are other point before this one…
For your 2nd point, if you think the Tile class is too big memory wise, you can ask it to create the slots object. And you can also transform the can* attributes to on-the-fly properties.
For your 3rd point, instead of a (1D/2D)-list of tiles, you can create a dict of tiles with coordinates as keys.
Hi
We experienced some technical issues this morning, but it should be solved now
Hi leaderboard seems freezed, ranking does not update…
nvm it seems fixedd now
At the frame 8 of this REPLAY
The unit in (5,1) is told to move to (5,2) but the other team constructs a recycler there.
So instead it moves to (6,1). (due to the path search i supposed).
Shouldn’t it rather stay put?
EDIT : SEE BELOW
Hi, someone could please help me understand how a tile should behave when it’s between 2 or multiple recycler?
1- a tile between 2 recycler of the same player, i understand the tile will only loose one material, the player still get only one material from this tile?
2- a tile between 2 recycler of different players, still the tile ll loose only one material. but each player gain 1 material?
thanks for the assist.
Hi, I think it’s not just you not understanding. I think the game rules about that need to be made more clear.
Seems, that you see it correct. In the rules, I can read:
—8<-----------8<-----------8<-----------8<-----------8<-----------8<-----------8<--------
A given tile can only be subject to recycling once per turn. Meaning its scrapAmount will go down by 1 even if a player has multiple adjacent Recyclers, providing that player with only 1 unit of matter. If a tile has adjacent Recyclers from both players, the same is true but both players will receive 1 unit of matter.
—8<-----------8<-----------8<-----------8<-----------8<-----------8<-----------8<--------
Hej guys,
short question. I program with Javascript and would like to use an AI library for the recent Robot challenge. How can I add it into the IDE given by Codingame? I am quite a beginner sorry for that :/.
BR
How do you play against yourself?
Nevermind, found it. For those curious: you can delete a player beneath their name in the IDE and then add a new player. From the new player you can select your IDE code, your arena code, the AI, or any player
Anybody have any robust solutions for debugging? I’m constantly getting “Error: EStew42 has not provided 1 lines in time”. I’ve putting timing print outs throughout my code but I cannot figure out what the problem is. Example: Coding Games and Programming Challenges to Code Better
I think there is no online-debugging available - or I haven’t found it yet.
But I echo the Inputs to the Error-Console. Then I copy the whole text and filter the Inputs out.
Then I run my program local, with debugger, and paste the input.
Don’t know what you use as Language… if you use Pascal, I can tell you more Details.
Thanks, thats helpful. I was definitely going to overcomplicate my local test environment. I’m using Python, should be easy enough… Thank you
C++
In the fall challenge, The code after the while loop “while (1)” is’nt read.
If I write this, nothing append :
while (1) {
cerr << “Debug messages…” << endl;
}
cerr is for debug information, but to actually answer/output you use cout
Yeah, you can’t share a cell if a recycle. The rule says
Robots may not occupy a Grass tile or share a tile with a Recycler .
And this unit is surrounded of unreacheable cells, because of grass or recyclers
One picture worth 1000 words ;o)
Check under your IDE:
thanks, i have the description in frensh and it’s way better described in english.
other question please in the action order section i don’t get the last part of the second rule saying a single robot can’t accomplish the 2 actions in the same turn (meaning Move and Spawn)
could you please explain this rule to me?