https://github.com/alan-turing-institute/p2lab-pokemon

A Python library for running genetic algorithms to optimize Pokemon teams!

https://github.com/alan-turing-institute/p2lab-pokemon

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    5 of 8 committers (62.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.2%) to scientific vocabulary

Keywords

genetic-algorithms pokemon python showdown

Keywords from Contributors

interactive projection archival sequences genomics observability autograding hacking shellcodes modular
Last synced: 6 months ago · JSON representation

Repository

A Python library for running genetic algorithms to optimize Pokemon teams!

Basic Info
  • Host: GitHub
  • Owner: alan-turing-institute
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 2.94 MB
Statistics
  • Stars: 9
  • Watchers: 5
  • Forks: 2
  • Open Issues: 19
  • Releases: 0
Topics
genetic-algorithms pokemon python showdown
Created over 2 years ago · Last pushed 7 months ago
Metadata Files
Readme Contributing License

README.md

p2lab logo

GitHub Workflow Status

An interface for optimising Pokémon teams using genetic algorithms!

Installation

  • Clone required repos:

bash git clone git@github.com:alan-turing-institute/p2lab-pokemon.git cd p2lab-pokemon git submodule update --init --recursive git clone git@github.com:smogon/pokemon-showdown.git

  • Install p2lab and poke-env:

bash cd poke-env pip install -e . cd .. pip install -e .

  • Have node installed and install showdown
    • See: https://nodejs.dev/en/learn/how-to-install-nodejs/

bash cd pokemon-showdown npm install # -g flag sometimes solved problems on our machines cd ..

Running

To run locally start the pokemon showdown server:

bash node pokemon-showdown start --no-security

In another terminal, from this project's root directory run:

bash p2lab <args>

Additional arguments for p2lab

```bash usage: p2lab [-h] [--generations GENERATIONS] [--team-size TEAM_SIZE] [--teams TEAMS] [--seed SEED] [--unique UNIQUE]

options: -h, --help show this help message and exit --generations GENERATIONS Number of generations to iterate over --team-size TEAM_SIZE Number of pokemon per team (max 6) --teams TEAMS Number of teams i.e., individuals per generation --seed SEED Random seed to use --unique UNIQUE Determines if a team can have duplicate pokemon species ```

Docker:

Alternatively, using docker: docker build -t p2:latest . docker run -it p2:latest docker exec -it your_container_id /bin/bash

Run docker build with --no-cache to rebuild with newer versions of the repos.

Components used

Pokemon showdown engine:

smogon/pokemon-showdown

  • Has instructions on setting up our own server (needed to run battles!)
  • Also features command-line utilities for generating/validating new teams

Poke-env

  • Wicked fast at simulating battles via pokemon showdown engine
  • https://poke-env.readthedocs.io/en/stable/getting_started.html

Owner

  • Name: The Alan Turing Institute
  • Login: alan-turing-institute
  • Kind: organization
  • Email: info@turing.ac.uk

The UK's national institute for data science and artificial intelligence.

GitHub Events

Total
  • Watch event: 1
  • Push event: 63
  • Fork event: 1
Last Year
  • Watch event: 1
  • Push event: 63
  • Fork event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 174
  • Total Committers: 8
  • Avg Commits per committer: 21.75
  • Development Distribution Score (DDS): 0.511
Past Year
  • Commits: 174
  • Committers: 8
  • Avg Commits per committer: 21.75
  • Development Distribution Score (DDS): 0.511
Top Committers
Name Email Commits
Nathan Simpson n****n@t****k 85
AoifeHughes a****s@t****k 52
philswatton p****n@g****m 10
Boyko Vodenicharski b****i@t****k 9
Nathan Simpson p****e@p****m 7
Lydia France l****e@t****k 5
eddableheath e****h@t****k 5
dependabot[bot] 4****] 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 26
  • Total pull requests: 40
  • Average time to close issues: 4 days
  • Average time to close pull requests: about 22 hours
  • Total issue authors: 4
  • Total pull request authors: 8
  • Average comments per issue: 1.81
  • Average comments per pull request: 1.53
  • Merged pull requests: 28
  • Bot issues: 0
  • Bot pull requests: 4
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • AoifeHughes (15)
  • phinate (6)
  • philswatton (2)
  • LydiaFrance (2)
Pull Request Authors
  • AoifeHughes (13)
  • philswatton (5)
  • boykovdn (5)
  • phinate (4)
  • eddableheath (2)
  • LydiaFrance (2)
  • dependabot[bot] (2)
  • pre-commit-ci[bot] (1)
Top Labels
Issue Labels
bug (4) enhancement (3) future work (3) question (2) help wanted (1) documentation (1)
Pull Request Labels
dependencies (2)