Filler is a game, where two players / algorithm are fighting on a map.
A virtual machine organizes the game :
- calls the players alternatively
- give each a random piece
On each turn, the current player have to put his piece on the map, and try to bother the ennemy. To put a piece, the player have to write its coordinates in the "Y X\n" format on the standard input (stdin).
The game appears on the standard input.
The aim of the game is to put more pieces on the map than the ennemy.
On big maps it's difficult to see what is really happening.
A visualizer made with the SDL2 helps us to understand what's happening.
brew install SDL2
brew install SDL2_ttf
If brew isn't installed, compile the project with the sources (don't forget to change the Makefile).
make
Standard mode :
./filler_vm -f [map] -p1 [player1] -p2 [player2]
Visualizer mode :
./filler_vm -f [map] -p1 [player1] -p2 [player2] | ./visual/visual
Example from the root folder :
resources/./filler_vm -f resources/maps/map02 -p1 ./azulbukh.filler -p2 resources/players/superjeannot.filler | ./visual/visual
125/100

