Coder Social home page Coder Social logo

42-filler's Introduction

Filler Project

Project Overview

Filler is a 42 Project to learn about AI and also a joint collaboration between Ben and I on the UI. The goal is to be the last player to put a piece, that can have any size and shape, sent by the Virtual Machine. To put a piece it needs to overlap ONE player's cell and only ONE and not overlap any of the challengers cells.

Strategy

  • Strategy is to check relative position compared to challenger.
  • Then get close enough from challenger, surround it while maintaining enough distance.
  • Once surrounded put pieces the closer we can.

Features

  • Original VM has been slightly modified in order to send the challenger's name to display it on the UI.
  • Colors of the board gradually change from green to blue for player 1 and from red to purple for its challenger.
  • inside the squares of player 1 we get the color of player 2.
  • [not yet implemented] we can see previous state

Credits

  • Many Thanks to my dear friend Ben for all the hard work on the User Interface. Please take 5mn to play its awesome Wolf3d project ;)

Installation

$> make

Usage

./filler_vm -f MAP -p1 ./P1_NAME -p2 P2_NAME -v
We can add -q to prevent display in the terminal
Example:
$> ./filler_vm -f maps/map01 -p1 ./angavrel.filler -p2 players/hcao.filler -v -q

Contact & contribute

To contact me and helping me to (fix bugs || improve) FDF, feel free to e-mail me at angavrel at student dot 42 dot fr

42-filler's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.