Frovu / DandyBot

A simple python programming game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DandyBot

This is an extensive continuation of this project.

А simple programming game. You write Python scripts to control your bot in a roguelike (or Dandy-like) world. The goal is to collect as much gold as possible in the presence of other bots.

The game uses only the Python standard library. Graphics assets are taken from here.

See random_bot.py and user_bot.py for API examples.

Game rules

  1. Player should provide a python script containing script(check, x, y) function.
  2. Player's function is called on every game tick, and should return player's action.
  3. Player should use provided check function to check for object at the desired position.
  4. Player may check for current level number, but we advice to generalize your code.
  5. Player should not use any global data or state.

API

Player's action is:

  • "take" for taking gold or key from player's tile or using portal at player's tile
  • "left", "right", "up", "down" for moving
  • "pass" for doing essentially nothing

Available check types are:

  • "gold" - returns gold amount on tile
  • "portal" - tells if tile is portal
  • "key" - tells if tile has key on it
  • "door" - tells if tile is door
  • "player" - tells if tile has player on it
  • "wall" - tells if tile is not impassable
  • "level" - returns current level number starting from 1
  • "empty" - tells if nothing above is true

screenshot

About

A simple python programming game.

License:MIT License


Languages

Language:Python 100.0%