Skip to content

setup for final round - needs improvement#17

Open
annadhm wants to merge 3 commits into
final_tournamentfrom
final_setup
Open

setup for final round - needs improvement#17
annadhm wants to merge 3 commits into
final_tournamentfrom
final_setup

Conversation

@annadhm

@annadhm annadhm commented Jun 10, 2026

Copy link
Copy Markdown
Owner

First, I implemented the idea of adjusting the bot’s behaviour based on the map we’re playing on. Unfortunately, determining this via the flag doesn’t work since that information isn’t available in the status. So I implemented the following: After 30 rounds (I also tested with 20 and 40 rounds), the map type is determined based on the observed wall density. If the wall density is over 28%, we play on the Maze map and make more conservative moves. Otherwise, we play on an open map and play more aggressively.

Based on observations from the last round, I have also implemented the following:

  1. Escape mode in case we get stuck after a crash. If we get stuck with a player within three rounds with less than two position switches, we ignore the last N tiles visited and look for a frontier in a different direction.

  2. In cases of low gold, we will take one step at a time towards the pot of gold for eight rounds. Another strategy could make more sense here. No moves at all, or moving towards the centre instead of the pot of gold.

  3. Instead of freezing, we reposition towards the centre.
    If we are done with exploring, we move to the centre and then towards the gold again.

  4. I have also implemented jumping, but I haven't tested it yet since you need to enable it in the game setup. However, I think this could be one of the rounds in the tournament. So I think it makes sense to test it.

If you're wondering whether it's possible to jump over walls and other players, the answer is no. Players can't be jumped over. So our idea to sabotage other players with a second bot, could work out :))

I didn't find the time to test my code for edge cases or to check that the logic is useful in all cases, but I wanted to share the code early in case you also start working on the bot.

However, I used the stats add-on to take a look at the overall performance.
I tested in short (200 rounds) and long (1000 rounds) on all maps (plots)

We won in maze (short), caves (long), inverse (both), and random (long). So still room for improvements🦾

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant