Skip to content

HackMelbourne/Poke-Hackie-PUBLIC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

README

Setting up local PS server

  1. Open command prompt
  2. Use one of "pip install poke-env" or "python -m pip install poke-env" or "py -m pip install poke-env"
  3. Copy-paste the next three lines:

git clone https://github.com/smogon/pokemon-showdown.git cd pokemon-showdown npm install

  1. Use "copy config\config-example.js config\config.js" for Windows, "cp config/config-example.js config/config.js" for Linux based systems
  2. Start local host with "node pokemon-showdown start --no-security"

Validating teams

This can be done on either local or official PS servers

  1. Click on Teambuilder
  2. Select New Team
  3. Click on the Format dropdown box and select [Gen 6] OU under the Past Gens OU column
  4. Click on Add Pokemon
  5. Proceed to add your Pokemons and select their items, ability, moves and EVs (we will be capping this)
  6. Once you're done adding Pokemons, go back to the team section and click on Validate. This will tell if you if your team is valid. If not, it will tell you what to change to validate it.
  7. Once validated, click on the Import/Export button at the top and save the output in a team.txt file. This will be your team we'll use for bot simulations.

How to write a bot

Write the bot logic in prod-testing/players/POKE-BOT/bot.py

The file structure for the players directory must be maintained, but feel free to create extra files/modules. If you do, keep them in POKE-BOT to avoid import issues.

As for the pokemon team, use the output from the Teambuilder tool and replace the placeholder team data in players/POKE-BOT/team.txt with it For useful functions to aid in decision logic, refer to [Main Modules Documentation] in https://poke-env.readthedocs.io/en/stable/modules/battle.html - especially with functions marked with the "property" tag.

How to run a bot

Run PSMainTestAccepter.py and challenge your bot directly. If you're on a local server, ensure that server_configuration is set to LocalhostServerConfiguration If on the actual server, use ShowdownServerConfiguration

Have two bots battle each other

NOTE: this configuration is specifically for VSCode AND LocalhostServerConfiguration Run PSMainTestAccepter.py in a dedicated terminal, then run PSMainTestChallenger.py in another dedicated terminal Ensure that the name in PSMainTestChallenger.py line 24 is the same as the name defined in PSMainTestAccepter.py account config name

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 99.6%
  • Python 0.4%