Skip to main content

An openai-gym wrapper for pikachu-volleyball

Project description

Pikachu Volleyball

Pikachu Volleyball (対戦ぴかちゅ~ ビーチバレー編) is an old Windows game which was developed by "(C) SACHI SOFT / SAWAYAKAN Programmers" and "(C) Satoshi Takenouchi" in 1997.

This is an OpenAI gym environment of the game created by translating a reversed-engineered JavaScript version by gorisanson to python.

Installation

pip install gym-pikachu-volleyball

Environment

Observation

Currently the only way for an agent to observe the environment is by the position and velocity of the ball, player1, player2 represented in a tuple of size 12.

Action

Actions are defined by 3 numbers (xDirection, yDirection, powerHit)

  • xDirection : Whether the player moves left or right or not. possible values: -1, 0, 1
  • yDirection : Whether the player moves up or down or not. possible values: -1, 0, 1
  • powerHit : Whether the player is power hitting. possible values 0, 1 (0 being False and 1 being True)

Rewards

1 if player2 (right player) wins and -1 if player2 loses. Reward is 0 while the game is running.

Done

The episode ends when the ball hits the ground.

Interactive

By running

python3 -m gym_pikachu_volleyball.scripts.interactive

You can play against the default AI. The game will end when a point is scored.

To record your game play, add --record to the above command and you will get a file with all the actions you did and the seed for the game.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym_pikachu_volleyball-0.0.6.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

gym_pikachu_volleyball-0.0.6-py3-none-any.whl (61.4 kB view details)

Uploaded Python 3

File details

Details for the file gym_pikachu_volleyball-0.0.6.tar.gz.

File metadata

  • Download URL: gym_pikachu_volleyball-0.0.6.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for gym_pikachu_volleyball-0.0.6.tar.gz
Algorithm Hash digest
SHA256 124ea27bb5e64af322693242dd66840e40a7889e51086bb1337d2669533e6c49
MD5 b58281fd9087c98104a88533861a98e2
BLAKE2b-256 8eb71d1c47f6a1c7889976ce6861b508636be7be2974fc65de87d113ffe358d1

See more details on using hashes here.

File details

Details for the file gym_pikachu_volleyball-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: gym_pikachu_volleyball-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 61.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for gym_pikachu_volleyball-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b4742b93faf3e034ca89b899cff4c999affef9034299835d64a6fd419f756295
MD5 e190513c77676b99792925e5503b35e2
BLAKE2b-256 d85080f92788e2ddcd0d882e1cbe04d4abeed29502c8bdf451033e2a70c22887

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page