Skip to content
/ Filler Public

A project designed to utilize ai to win a game... Im gonna bury you!

License

Notifications You must be signed in to change notification settings

rpeepz/Filler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filler Actions StatusGitHub releaseGitHub All ReleasesGitHub licenseTwitter Follow

An Ai player that I created to play a game developed by 42 students
僕は埋めるよ!!
I'll fill you!

Table Of Contents

About 42

42 is a free, non profit, project-based, peer-to-peer learning coding school. It originated in France and now has over 20 campuses all over the world. More information can be found here.




Objective

This project's goal is to create player for the Filler game.

sample gameplay:
test

click here for a video of the game played by one of the first to attempt this project


Installation

Download and compile repo:

git clone https://github.com/rpeepz/Filler.git  
cd Filler  
make  

Executable rpapagna.filler will be created

Usage

./filler_vm -p1 user1 -p2 user2 -f mapfile 1

  • Filler_vm is the Ruby exececutable that provides pieces
  • user1 and user2 are player executables
  • mapfile is any of the maps provided in the maps directory.

For help run ./filler_vm with no arguments

Make sure you have the required dependencies before proceeding.
For instructions and/or greater detail refer to the project pdf




Project Structure

Source files

src/
├── main.c
├── phase_one.c
├── play.c
├── set.c
└── sort.c

1 directory, 5 files

Header files

includes/
└── filler.h

1 directory, 1 file



Dependencies

  • A C language compiler most common would be GCC or Clang.
  • Cmake to run the custom Makefile for fast instalation.
  • Code was written to run on Unix based systems, it would likely work on a windows machine too but is currently untested.

Future

My current release has a small known issue.
I also plan to implement more phases for a more advanced fill.

Subject PDF

Filler PDF


Sources

Morgane Dubus - teaching the outline
Pierre Bondoerffer - teaching the conept
WolframAlpha.com - help with calculations
My Notebook - testing concepts
Antoine Janssen - correction genuis
@Phat Truong - rigorous testing
Jincheol Park - help at every step



Keep in Touch

You can find me on:



This project was attempted for learning purposes only. This repo may not be kept up to date and I cannot guarantee that it will work on your future machines. You are welcome to use and learn from this as you want, but do not implement code that you do not understand. These sources listed above have been invaluable and I advise you to do research on the subject before trying to copy the code you see here.


1: The vm will fail if a player is in the current directory. Give the path to fix this e.g. -p1 ./rpapagna.filler

About

A project designed to utilize ai to win a game... Im gonna bury you!

Resources

License

Stars

Watchers

Forks

Packages

No packages published