Skip to content
프로젝트

소개

Pokémon Showdown 배틀 AI입니다.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+2
in 15 days
+4
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Foul Play umbreon

A Pokémon battle-bot that can play battles on Pokemon Showdown.

Foul Play can play single battles in all generations though currently dynamax and z-moves are not supported.

badge

Python version

Requires Python 3.11+.

Getting Started

Configuration

Command-line arguments are used to configure Foul Play

use python run.py --help to see all options.

Running Locally

1. Clone

Clone the repository with git clone https://github.com/pmariglia/foul-play.git

2. Install Requirements

Install the requirements with pip install -r requirements.txt.

Note: Requires Rust to be installed on your machine to build the engine.

4. Run

Run with python run.py

Here is a minimal example that plays a gen9randombattle on Pokemon Showdown:

python run.py \
--websocket-uri wss://sim3.psim.us/showdown/websocket \
--ps-username 'My Username' \
--ps-password sekret \
--bot-mode search_ladder \
--pokemon-format gen9randombattle

Running with Docker

1. Clone the repository

git clone https://github.com/pmariglia/foul-play.git

2. Build the Docker image

Use the Makefile to build a Docker image

make docker

or for a specific generation:

make docker GEN=gen4

3. Run the Docker Image

docker run --rm --network host foul-play:latest \
--websocket-uri wss://sim3.psim.us/showdown/websocket \
--ps-username 'My Username' \
--ps-password sekret \
--bot-mode search_ladder \
--pokemon-format gen9randombattle

Engine

This project uses poke-engine to search through battles. See the engine docs for more information.

The engine must be built from source if installing locally so you must have rust installed on your machine.

Re-Installing the Engine

It is common to want to re-install the engine for different generations of Pokémon.

pip will used cached .whl artifacts when installing packages and cannot detect the --config-settings flag that was used to build the engine.

The following command will ensure that the engine is re-installed properly:

pip uninstall -y poke-engine && pip install -v --force-reinstall --no-cache-dir poke-engine --config-settings="build-args=--features poke-engine/<GENERATION> --no-default-features"

Or using the Makefile:

make poke_engine GEN=<generation>

For example, to re-install the engine for generation 4:

make poke_engine GEN=gen4

관련 프로젝트 살펴보기

불러오는 중…