FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Frovu/DandyBot: A simple python programming game. · GitHub

/ DandyBot Public

Latest commit

 

History

100 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple python programming game.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL