Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.4 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.4 KB

Pythonbots

screenshot

PythonBots is a programming contest where programmers, or players, write robots in python to fight in a virtual arena. Wins the robot who stand alive last, the objective is to kill all opponents shooting them.

The programming is very easy, thanks to python itself and to a very simple interface. The player has only to create one python file(module) with only on function that takes input parameters read from the world and output decisions like moving, turning or shooting. There are some examples.

The graphics are not very fancy, using pygame and only simple drawing primitives. But yet the game its very exciting and fun, even though all you do after programming your bot is watch it trying to beat your friends.

It's possible to configure several matches for championships and also run it without graphics for fastest results.

Command line usage

Usage: main.py [options]

Options:
  -h, --help            show this help message and exit
  -d DT, --dt=DT        delay per frame(fps related)
  -r ROUNDS, --rounds=ROUNDS
                        rounds to play
  -a, --arcs            Show scan arcs
  -s, --sound           Active sound effects
  -t, --text-mode       Text mode(no graphics): faster simulation
  -n, --names           Show bot names

Example

$ python main.py -ans -r 10 ccoria cabello bigodines snitram william