Code Monkey home page Code Monkey logo

maic2020-seega's Introduction

MAIC2020-Seega

Third edition of the Mify Artificial Intelligence Contest #MIFY #AAAIBenin

The Game

One of the chosen game for this edition is Seega. Informations on the competition and the rules of the game is available here.

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. (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).

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 ./seega/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:

    git clone https://github.com/Machine-Intelligence-For-You/MAIC2019.git
    cd MAIC2020-Seega/
    python main.py -ai0 ai_0.py -ai1 ai_1.py -s 1.5

    python main.py -ai0 ./seega/random_agent.py -ai1 ./seega/random_agent.py -s 1.5

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 ./seega/random_agent.py -ai1 ./seega/random_agent.py -s 1.5 -t 120

maic2020-seega's People

Contributors

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