Coder Social home page Coder Social logo

rgsimulator's Introduction

rgsimulator

Test how your robotgame bot behaves in certain situations.

(latest) rgkit is needed to use it. If you don't have it, grab it from here and install as a module with pip.

Usage

usage: rgsimulator.py [-h] [-m MAP] player [player2]

Robot game simulation script.

positional arguments:
  player             File containing first robot class definition.
  player2            File containing second robot class definition (optional).

optional arguments:
  -h, --help         show this help message and exit
  -m MAP, --map MAP  User-specified map file.

If your robot code contains a dict called rgsim_text, rgsimulator will attempt to print the dict's values at the location given by the dict's keys.

Controls

rgsimulator is fully keyboard-controlled.

  • Use arrow keys or WASD to move selection.
  • Press F to create a friendly bot in selected cell.
  • Press E to create an enemy bot in selected cell.
  • Press R, Delete or Backspace to remove a bot in selected cell.
  • Press H to change hp of a bot in selected cell.
  • Press T to change turn.
  • Press C to clear the board.
  • Press Space to show moves bots would attempt.
  • Press Enter to progress turn.
  • Press L to load a match from robotgame.net. Enter just the match number.
  • Press K to load a specific turn from a loaded match. Also updates the simulator turn counter.
  • Press P to swap code for the two bots. (player 1 becomes player 2)
  • Press O to reload the code for both bots.
  • Press N to change the action of the robot in selected cell. Think N for "next action".
  • Press G to spawn robots and remove robots in spawn locations. Think G for "generate robots".

Screenshots

rgsimulator's People

Contributors

kylar avatar mpeterv avatar mueslo avatar ramk13 avatar sh4rk avatar sionide21 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.