Code a winning Bomberman AI and get R70,000

I might enter this competition for once.

I wonder how much your AI knows about the state of the game board? Do you know where other players are at all times?
 
I wonder how much your AI knows about the state of the game board? Do you know where other players are at all times?
A player entity will not able to move to a space containing another entity, with the exception of power ups.
Two player entities will not be able to move onto the same space during a round, if this does happen the game engine will randomly choose a player whose move will be discarded.
They don't seem to specify how (other) player location is acquired, but judging from the rules they must achieve it somehow - else it's just a game of blind luck. Not really too sure.
 
They don't seem to specify how (other) player location is acquired, but judging from the rules they must achieve it somehow - else it's just a game of blind luck. Not really too sure.

It has quite a big effect on how your AI works. I'd have to have a look at their sample code to see.
 
It has quite a big effect on how your AI works. I'd have to have a look at their sample code to see.

Hey Ancalagon,

I got the code and am trying to make it run. It keeps complaining about a state.json file that it needs but it wasnt included in the zip.Pls help.

private string LoadState()
{
var filename = Path.Combine(WorkingDirectory, Settings.Default.StateFile);
try
{
string jsonText;
using (var file = new StreamReader(filename))
{
jsonText = file.ReadToEnd();
}

return jsonText;
}
catch (IOException e)
 
I have no idea, sorry man. I know what JSON is, but not in the context of this project. Absolutely no idea.
 
They don't seem to specify how (other) player location is acquired, but judging from the rules they must achieve it somehow - else it's just a game of blind luck. Not really too sure.

Correct, I also dont see anything that points to us getting other players locations.So blind it is.More of a challenge lol
 
I have no idea, sorry man. I know what JSON is, but not in the context of this project. Absolutely no idea.

Its just that the file wasnt included in the zip and the program wants it lol
 
Hey Ancalagon,

I got the code and am trying to make it run. It keeps complaining about a state.json file that it needs but it wasnt included in the zip.Pls help.

private string LoadState()
{
var filename = Path.Combine(WorkingDirectory, Settings.Default.StateFile);
try
{
string jsonText;
using (var file = new StreamReader(filename))
{
jsonText = file.ReadToEnd();
}

return jsonText;
}
catch (IOException e)

They'll need to include the file then...
 
Correct, I also dont see anything that points to us getting other players locations.So blind it is.More of a challenge lol

Interesting. You'll have to build up data structures to represent what your bot "knows" about the state of the game board.
 
Correct, I also dont see anything that points to us getting other players locations.So blind it is.More of a challenge lol
If you can get info like where a bomb has been set off (and other history) & using the board mechanics, you can probably infer their position to a level that would make your bombing success be much more statistically significant that blind luck.
 
If you can get info like where a bomb has been set off (and other history) & using the board mechanics, you can probably infer their position to a level that would make your bombing success be much more statistically significant that blind luck.

I think we are getting f all info.We are just getting a randomised game maze and off you go.Let me read up on their forums a bit.
 
I think we are getting f all info.We are just getting a randomised game maze and off you go.Let me read up on their forums a bit.

I am pretty sure that like the previous years, you get the whole game state every round.
 
Hi Batista,

The sample bot needs to be run with the game engine, that is why the state file is not found. Please have a look at the github page for detailed instructions.
 
The state.json files and map.txt files with give you all of the information you need, including the location of other players and their power up stats.
 
Top
Sign up to the MyBroadband newsletter
X