Skip to content

MIFY-AI/MAIC2021-Fanorona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python main.py -ai0 ./faronona/random_agent.py -ai1 ./faronona/random_agent.py -s 1

# MAIC2021-FANORONA
Fifth 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 ai_0.py -ai1 ai_1.py -s 1.5

        python main.py -ai0 ./faronona/random_agent.py -ai1 ./faronona/random_agent.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 ai_0.py -ai1 ai_1.py -s 1.5 -t 120

         python main.py -ai0 ./faronona/random_agent.py -ai1 ./faronona/random_agent.py -s 1 -t 120

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages