Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 2.18 KB

README.md

File metadata and controls

47 lines (29 loc) · 2.18 KB

PaintBot

Program bots and compete to cover the playing field in your color.

Try It

You can play PaintBot at this link (no account creation required).

See a sample game replay at this link.

Learning Objectives

  • Evaluate Python programs in your head while reading source code.
  • Write Python programs using loops and conditionals.

Instructions

Every player in PaintBot programs their strategy through a method that takes a single argument. The bot parameter is a PaintBot object containing many methods for game play.

Read the documentation to read the rules see what methods can be used.

See examplegame.py for a sample game with two sample players, all defined in a single file.

Consider this short, example player code:

def main(bot):
    """Your player strategy"""
    while bot.is_playing():
        bot.right()

Contributions

If you create a bot player or game with sample players that you want to share with the community, you can create a pull request and add it to this repository in the community folder. Community bots or games must meet these requirements:

  • Can be used by any teachers or learners for free
  • Uses a filename that is not already taken
  • Includes the author's name, screen name, website link, or other means through which they want to be credited
  • (Preferably) Is contained within a single file, with minimal or no public package dependencies

If this is your first time creating a pull request or you have other questions, feel free to contact oer@mimirhq.com

About

This project is, in part, inspired by a mini game from Mario Party and the video game series Splatoon. These projects are not affiliated.

PaintBot is maintained by the curriculum team at Mimir, a company that helps high schools and universities teach computer science classes and give their students helpful feedback on their work.