[Community Puzzle] Penguins

https://www.codingame.com/multiplayer/bot-programming/penguins

Send your feedback or ask for help here!

Created by @LeRenard,validated by @darkhorse64,@trictrac and @jacek1.
If you have any issues, feel free to ping them.

I did the demo, but I can’t figure out how to get the code I wrote back, so I can use it in the newly accepted puzzle

Does this link work for you?

I am always getting invalid move. For example in first move I placed a penguin at A1 and in second move I placed at A2. Both A1 and A2 are valid moves. Anybody facing the same issue?

Are you changing the ID of the penguin you’re trying to place?

I found the issue. I was moving one penguin without placing all initially on the board.

I really loved this puzzle. I thought the rules were simple enough, but it also had a lot of components that made it interesting for an AI challenge, such as high branching factor, multiple gameplay phases, long term planning, 3 and 4 player games, etc.

I ended up writing a little blog post describing the making of my bot: https://coganblogs.blogspot.com/2020/12/codingame-building-ai-to-play-and-win.html

2 Likes

I couldn’t get this link to work. Could you give your Blogger home page landing page? Thanks.

Fixed now, sorry about that. I accidentally linked to the edit page instead of the view page for the post. Thanks for the heads up!

2 Likes

My pleasure. Working fine now, thanks.