Skip to content

First version of simple bot#2

Open
annadhm wants to merge 1 commit into
Round_1_gamefrom
annadhm_Round_1_game
Open

First version of simple bot#2
annadhm wants to merge 1 commit into
Round_1_gamefrom
annadhm_Round_1_game

Conversation

@annadhm

@annadhm annadhm commented May 9, 2026

Copy link
Copy Markdown
Owner

Hey guys👋,

I've just finished my first implementation of the bot.
I kept it simple, basing my implementation on MyNonRandomPlayer from the test version. So, the bot moves in the direction of the gold.
I made some additional changes:

  1. The bot can take more than one step.

This is useful if the way to the gold is known, as the gold can be reached in one round.

However, for now, the bot always decides to make all financially feasible moves, even if the gold cannot be reached, which leads to a situation where there is not enough gold left to move.

  1. If another player is on the way to the gold, the bot decides to ram them.

I thought this could be useful if we have a lot of gold because we can reduce the gold of other players (I know, quite mean 🤓), but I noticed while testing that only the player who performs the ram move has their gold reduced.

This behaviour also leads to an endless loop in a low gold state. The same moves are performed over and over again.

So I don't think this strategy is the smartest way to go for us.

Before I fix these issues, I thought it would be better to look at your implementation first in case this bot won't be our submission.

@juwei95

juwei95 commented May 9, 2026

Copy link
Copy Markdown
Collaborator

Big fan of your small utility functions, these will come in handy for sure:

  • update_map
  • found_gold
  • affordable_moves

Here are the results from a test run against my bot.

viz

the-other-thanos pushed a commit that referenced this pull request Jun 3, 2026
Ez3k4 illustrator 
Adds the option to to capture statistics of one run with the flag --stats [optional: output filename.png]
We can have the visualization also as a mp4 file by giving the visualization output filename the .mp4 filetype !!!ffmpeg needs to be installed
Added some small optical changes to the visualization itself (gold labels next to the bots)
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.

2 participants