Skip to content

In this project I had to create a player (bot) that will fight other bots on the famous (or not) Filler board. The rules are simple: two players fight on a board and, in turn, must place the piece given to them by the game master (a Ruby executable), thereby scoring points. The game ends when a piece cannot be placed. A small fun game project.

Notifications You must be signed in to change notification settings

avocadohooman/42-filler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-filler

In this project I had to create a player (bot) that will fight other bots on the famous (or not) Filler board. The rules are simple: two players fight on a board and, in turn, must place the piece given to them by the game master (a Ruby executable), thereby scoring points. The game ends when a piece cannot be placed. A small fun game project.

Usage

git clone https://github.com/avocadohooman/42-filler.git | cd 42-filler
cd resources
./filler_vm -f maps/map01 -p1 players/gmolin.filler -p2 players/superjeannot.filler | ./visual

Notes by the Creator

The algorithm used for this project is pretty effective, but not efficient. I decided to stop working on the algorithm as soon as I achieved an average winning ratio of 80% against all bots, which were provided by the subject, on all maps.

Especially on map02 my algo becomes really slow and it surfaces the weak spots of my algorithm against more sophisticated algorithms by other players.

For future developments:

  • Improve efficency and speed by improving placing strategy (placing first closer to the enemy, then fill the rest of the field)

Preview

About

In this project I had to create a player (bot) that will fight other bots on the famous (or not) Filler board. The rules are simple: two players fight on a board and, in turn, must place the piece given to them by the game master (a Ruby executable), thereby scoring points. The game ends when a piece cannot be placed. A small fun game project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published