Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

udacity/AIND-Isolation_PvP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Isolation PvP

Modified Isolation library and scripts to run a PvP Isolation competition for the AIND.

Setup

  • Clone this repository
  • Put a copy of a default "competition_agent.py" implementation in the base directory (this file is used to "balance" tournaments with an odd number of agents)
  • Put all competing agents in their own directories within a target folder. For example:
    AIND-Isolation_PvP/  
        competition_agent.py  # default agent for balance  
        agents/  # player agents go here  
            agent1/  
                competition_agent.py    
            agent2/  
                competition_agent.py  
            ...  
            agentN/  
                competition_agent.py

Usage

Run the script by completing the steps in setup, then executing python run.py <options> as shown below.

usage: run.py [-h] [-i INPUT] [-p PROCESSES] [-d] [-t]
              [-l {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Name of the input folder containing agent folders
  -p PROCESSES, --processes PROCESSES
                        Number of processes to use for running matches
  -d, --database        Name to use for sqlite database of results (ignored if
                        -t is used)
  -t, --temp            Use an in-memory database (results not saved)
  -l {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}, --loglevel {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}

Archival Note

This repository is deprecated; therefore, we are going to archive it. However, learners will be able to fork it to their personal Github account but cannot submit PRs to this repository. If you have any issues or suggestions to make, feel free to:

About

Code to execute an elimination tournament between student agents from the isolation project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages