Code Monkey home page Code Monkey logo

rgcompare's Introduction

rgcompare

rgkit robot comparison tool

This is a program to compare two (soon: many) [rgkit] 1 robots (see also robotgame.org).
Another useful tool: rgsimulator

Features

It has multiprocessing and live updating of graphs.

It is in some sorts a replacement for rgkit's default 'run-headless.py', since it is supposed to only test bots against each other, and not be used for debugging. Try to use non-functional bots at your own peril!

Requirements

Python 2.7 (plus its standard libraries), matplotlib, numpy, [rgkit] 1. Since having two git repositories in the same folder can be derpy, you probably want to clone it somewhere else and just symlink rgcompare.py

Installation

A PyPI package is available [here] 2.

Caveats

I'm not a (professional) programmer, so please excuse my coding style, should it be non-standard or bad. If there's something you want to change, feel free to contribute. There are also numerous bugs currently, the program is unresponsive when running and it will occasionally crash. Don't say I didn't warn you.

Example

Usage

usage: rgcompare [-h] [--initrun] [--games GAMES] [--turns TURNS] [--version]
                 [--processes PROCESSES] [--batch [output dir]] [--no-gui]
                 [--map MAP]
                 [r [r ...]]

Compare two or more robotgame controller bots in rgkit

positional arguments:
  r                     robots to fight each other. not yet implemented: if
                        more than two, batch mode will commence

optional arguments:
  -h, --help            show this help message and exit
  --initrun             attempt to run game as soon as launched
  --games GAMES         number of games to run (default 100)
  --turns TURNS         number of turns per run to set (default 100)
  --version             show program's version number and exit
  --processes PROCESSES
                        number of processors to use for calculation (default
                        NUM_PROCESSORS)
  --batch [output dir]  not yet implemented: and save image of every battle
                        when finished (default: rgcompare/)
  --no-gui              run without graphics (enables initial run)
  --map MAP             map to use (default maps/default.py)

rgcompare's People

Contributors

mueslo avatar sh4rk avatar andrepl avatar kylar avatar mpeterv avatar sysadmin75 avatar

Watchers

James Cloos avatar Lăcră Danciu 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.