Skip to content

A very fast (2.5 minute) way of getting approximately pimanrules ELO world video.

License

Notifications You must be signed in to change notification settings

saikumarmk/pokered-trainer-tournament

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokemon Gen 1 AI Trainer tournament

Code that uses the pkmn/engine and PyKMN to simulate a generation one trainer tournament. More details can be found in this post.

Installation

Begin by setting up a virtual environment.

You will require the PyKMN bindings from saikumarmk/PyKMN before proceeding. Clone the repository, and run the following in the PyKMN folder:

python3 -m build 
python3 -m pip install --find-links=dist pykmn

Which will generate the wheels for pykmn then install them. You should build this inside the virtual environment, although you could run the first command and then manually install the wheel. Up to you.

After all your dependencies have been installed, you can regenerate the trainerclasses.pkl file by running:

python -m utils.parse_asm

Generating results

You can simply run python run_battle.py to simulate all 391*390/2 battles, which will then be pickled. TBD on how to analyse these results, though you can just use utils/elo_calculator.py inside a notebook to get the rankings.

About

A very fast (2.5 minute) way of getting approximately pimanrules ELO world video.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published