Skip to content

jrobin42/filler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filler

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.

Install and compile

Steps

  1. git clone https://github.com/jrobin42/filler.git ~/filler
  2. cd ~/filler
  3. git submodule init libft && git submodule update && make

Now everything is ready to play !

Usage of the program

./filler_vm.exe -f {MAP} -p1 {FIRST_PLAYER} -p2 {SECOND_PLAYER}

Note that all of the players has the .filler extension.

Example of launch

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.

Enjoy !

About

Little AI game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published