https://www.codingame.com/multiplayer/bot-programming/bit-runner-2048
Send your feedback or ask for help here!
Created by @Illedan,validated by @pb4,@Agade and @eulerscheZahl.
If you have any issues, feel free to ping them.
https://www.codingame.com/multiplayer/bot-programming/bit-runner-2048
Send your feedback or ask for help here!
Created by @Illedan,validated by @pb4,@Agade and @eulerscheZahl.
If you have any issues, feel free to ping them.
Is there a specific way to check if a player is carrying a prisoner? Thank you!
The prisonerId of a Car entity will either be -1 if it has none, or the ID of the prisoner it’s carrying
Okay, thank you!
I’ve been playing around with neuroevolution. I’m messing with the right inputs for the NN. Right now NN knows the car’s position, velocity and angle, ball’s position and velocity and has some sort of sensors of obstacles in front of it. It allowed to be in top Wood 4 so far. Do NN folks have any tips?
So, you managed to get into second in the top league, reCurse is still too good… do you have any tips for a noob struggling to beat the wood 3 boss. Who is still 10 elo better than me… have made steady inroads but suspect I am missing something massive. any tips or a writeup of your progress would be wonderful
.
I switched to search based algorithm. I use smitsimax with NN evaluation. But I think you can do smitsimax with depth 7-9, with just the raw score as evaluation and beat the boss.
Thank for the fast reply. I was using Duct which should be similar, have the depth set to 10, guess my eval sucks… I tried shallower and thought it played worse. I get about 1500 full sims don’t know if this is good or not, will have to try just the score, thought I tried that and didn’t win, but have fixed quiet a few bugs since then.
If I wanted to try a neutral network, what features do you suggest it should have?
The inputs for my network are: score one, score two, who’s leading in case of tie; for each ball its position and velocity; for each car its position, velocity, if it has ball, angle as sin(angle) and cos(angle). Inputs scaled so most features lie in range [-1;1].
Thanks, and you calc this as your eval at each leaf? I don’t see much co-operation between my cars when I don’t assist them in someway
Also I think plain smitsimax might get past boss4, I haven’t gotten past boss3 with that
Yes, +eval for my cars, -eval for enemy cars (I use tanh (-1;1) as output). At first the cars choose quite randomly, but then their moves are more coordinated and cooperated. Aside from UCT I use e-greedy during selection - 5% chance to select random move regardless of score, it seems crucial in smitsimax.
thanks again, still haven’t gotten past the boss, but you tips were worth a 4.5elo boost so thats pretty decent. I’ve gone form basically 0% against the boss to maybe 25%, and smitsimax is working much better!
I see you’re above me now. Congratulations. Is it NN?
Thanks, slow but steady, am struggling to find new improvements though. and recurse is a serious wall. I win under 10% of my games against him… the submission you probably saw was at 30% against recurse, I was hopeful but it was an anomaly, same bot on the second attempt got 0%
and yes, small NN on a smitsimax depth 7 search.
There are a 7 new submissions above you on the leaderboard now, including Daporan who has an 80% win rate against recurse. I had almost caught recurse then this guy blows us both out of the water.
Yeah, I wonder what happened that allowed them playing at such level…
I am sure it is the newer agents. I think the current coding agents are like chess computers in the mid to late 90s, where if you were really good you could still beat them, if you were just good then they would clip your wings on some tactical response you missed, fast forward to now, Magnus Carlson can’t beat his phone…
At the moment they are actually pretty good, they tie themselves in knots if given an open scope, and reach a fairly hard ceiling, but if directed with some level of competence they are pretty damn good. and combined with someone who has half an idea, who knows. And the rate of progress is mind blowing. 2 years ago they were worse than not having help, last Christmas they were almost competent at a poor level, now I make a suggestion and it has tested it out in a few hours, and when I dig into the code it generally seems reasonable.
The biggest problem is them not actually understanding what you want and wandering along on a tangent that sounds like what you asked, but is actually totally different. So it pays to read the wall of text they bury you with, and flag anything that you don’t understand or feels wrong.