This project is a little game where two players are fighting on a map.
They play turn by turn putting a piece - given by the vm - on the map.
The game ends when the map is full.
The winner will be the one which has put the most of pieces.
My role in this project was to code a better player than the others - which are in the players
repository - in C.
I did a heat map to find the better place where put my piece.
git clone https://github.com/jrobin42/filler.git ~/filler
cd ~/filler
git submodule init libft && git submodule update && make
Now everything is ready to play !
./filler_vm.exe -f {MAP} -p1 {FIRST_PLAYER} -p2 {SECOND_PLAYER}
Note that all of the players has the .filler
extension.
You will see that there is a repository of maps
and an other of players
.
The one I coded is named jrobin.filler.
To test it - against abanlin
's player for example on the map named map01
-, run the vm this way :
./filler_vm.exe -f maps/map01 -p1 players/jrobin.filler -p2 players/abanlin.filler
First player will be the one with O pieces and the second with X pieces.
At the end of the display on the terminal you will have this :
== O fin: {NUMBER OF BLOCKS}
== X fin: {NUMBER OF BLOCKS}
The winner is the one with the higher number of blocks.