The troll farm.
My colleagues reminded me about a beautiful platform. It is a nice way to study programming languages and algorithms. Unlike leetcode, where the feedback is basically "your solution didn't pass test 573", in Codingame you can actually see how your program controls some characters, trolls this time.
The idea of the spring contest is simple. There are resources on the map: trees, water, iron, and so on. The map is symmetrical. You have a tent, and your opponent has a tent. Your program can issue simple commands: move your troll, chop, pick up, put down. The goal is to gather as much fruit and wood as possible.
Of course, I decided to participate using agents and a programming language (Rust) in which I have absolutely no experience.
Vibe programming quickly pushed me through the first two leagues and then I got stuck in the Gold league. It happened exactly when Fable became available again. It gave me a serious boost in the rankings, but not enough to beat Boss 5 and reach the next league.
Then ChatGPT 5.6 appeared and I reconstructed a bot from the next league. Unfortunately, Codingame decided to go offline, so I can not share my current position.
To have something entertaining to read during the flight, I rendered a document with small introduction to Rust and a description of bot's logic. It turned out to be really good reading. I thoroughly enjoyed it on the plane and even solved a few simple problems in Rust. I think I will share these funny little programs in the next posts.