Giter Club home page Giter Club logo

charlot-dedjinou / mify-maic2022-contest Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 8.82 MB

Je suis fier de partager que notre équipe a remporté la première place au concours Maic International 2022. Notre défi consistait à développer une intelligence artificielle capable de jouer au jeu de Morabaraba. Avec notre solution développée en Python, nous avons démontré notre expertise dans le domaine de l'intelligence artificielle.

Python 100.00%
artificial-intelligence contest ia maic python

mify-maic2022-contest's Introduction

python main.py -ai0 ./morabaraba/random_agent.py -ai1 ./morabaraba/random_agent2.py -s 1 -t 5.0

# MAIC2022-MORABARABA
Sixth edition of the Mify Artificial Intelligence Contest #MIFY #AAAIBenin


## Setup

The game was implemented in **Python** and works with versions greater than or equal to **3.6+**.

### Get Python and dependencies


You can download the **3.6+** version of Python [here](https://www.python.org/downloads/).
(Don't forget to add python to the path if you are on Windows)

Next, install the dependencies for the game. For that just run the following command (Note that you may replace *pip* by *pip3* if you have different versions of python).


```bash
pip install -r requirements.txt
```

### Run the code

Firstly, just clone this repository or download the zip to get everything you need to work and just run by following the instructions. Get exemple AI at ./faronona/random_agent.py


**Usage:**

      python main.py -ai0 ai_0.py -ai1 ai_1.py -s 0.5


      -ai0 
          path to the ai that will play as player 0
      -ai1 
           path to the ai that will play as player 1
      -s 
           time(in second) to show the board(or a move)
      -t
           total number of seconds credited to each agent


**Example:**

        python main.py -ai0 ./morabaraba/random_agent.py -ai1 ./morabaraba/random_agent2.py -s 1



### Allowed time for each AI
The t option allows you to specify the overall time allowed for all of you AI moves. After this time is exhausted all the next moves for the AI is done by a random agent.
Now to run it you will have to use another file which is **main.py** with the same settings.

**Example:**

        python main.py -ai0 ./morabaraba/random_agent.py -ai1 ./morabaraba/random_agent2.py -s 1 -t 5.0


# AI Implementation
Use the file ./morabaraba/random_agent.py as a template for your implementation. In this file you only have two things to do : 
 - Change the name of the AI through the class attribute name
 - Override the play function of the class to return an action

# AI submission
Once your submission file is ready, compress it into a .zip file, don't put it in a folder before compressing it. Go to the web platform and submit your AI

mify-maic2022-contest's People

Contributors

charlot-dedjinou avatar

Stargazers

 avatar

Watchers

 avatar  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.