GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mgcsweek/csweekmon: Tiny toy project for MG CS Week

BranchesTags
Open more actions menu

Latest commit

 

History

55 Commits
55 Commits

Folders and files

NameName
Last commit message
Last commit date
items
items
 
 
moves
moves
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
actions.py
actions.py
 
 
create_strategy.py
create_strategy.py
 
 
csweekmon.py
csweekmon.py
 
 
game_engine.py
game_engine.py
 
 
run.py
run.py
 
 
strategies.py
strategies.py
 
 
utils.py
utils.py
 
 

Repository files navigation

csweekmon

Made for CS Week v5.0 in December 2018. This is a simple Python 3 miniproject whose goal is to program very simple AI agents for a Pokemon style turn based RPG (only for the battle system). It comes with a few default AIs, used mainly for testing purposes.

Usage

Running

Just run run.py. For example, from the command line:

python3 run.py

This will start a text crawl that shows the progress of the battle.

The only reason why python3 is used is for more cosmetic features: Unicode characters feature in the text crawl.

You can use the --no-verbose flag to suppress most of the output, and --delay=<time> to change the delay between messages being displayed. For example, to double the speed of the text crawl:

python3 run.py --delay=0.5

Adding your own AI

You will need to create your own strategy in a separate file, for example <file>.py. It should look like a class resembling the ones in strategies.py. To get your AI to compete in a tournament, simply edit run.py and modify it slightly:

  • at the top:
import <file>
  • add your class to the STRATEGIES list

You can either adapt the existing code or use the helper create_strategy.py program.

If you managed to do this right, your AI will start competing in a tournament the next time you run run.py.

About

Tiny toy project for MG CS Week

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

1 star

Watchers

8 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.