=?utf-8?b?MjBYWCBpcyBhIFBldHRpbmdab28tYmFzZWQgbGlicmFyeSBmb3IgTWVsZWUuICjijJDilqBf4pagKQ==?=
Project description
20XX
from melee_20XX import Melee_v0
20XX is a PettingZoo-based library for Melee. (⌐■_■)
Code Example
import os.path
import melee
from melee_20XX import Melee_v0
from melee_20XX.agents.basic import CPUFox, RandomFox
players = [RandomFox(), CPUFox()]
env = Melee_v0.env(players, os.path.expanduser('~/.melee/SSBM.ciso'), fast_forward=True)
max_episodes = 10
if __name__ == "__main__":
env.start_emulator()
for episode in range(max_episodes):
observation, infos = env.reset(melee.enums.Stage.FOUNTAIN_OF_DREAMS)
gamestate = infos["gamestate"]
terminated = False
while not terminated:
actions = []
for player in players:
if player.agent_type == "CPU": # CPU actions are handled internally
action = None
else:
action = player.act(gamestate)
actions.append(action)
observation, reward, terminated, truncated, infos = env.step(actions=actions)
gamestate = infos["gamestate"]
Note
This library requires Slippi, which in turn requires an SSBM 1.02 NTSC/PAL ISO. This library does not and will not distribute this. You must acquire this on your own!
Installation
pip install 20XX
pip install git+https://github.com/WillDudley/libmelee.git (fixes some menu handling issues)
Credits
- Heavily relies on libmelee,
- uses PettingZoo,
- originally forked from melee-env.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file 20XX-0.1.2.tar.gz.
File metadata
- Download URL: 20XX-0.1.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff100db4bb7ac65515a0c14c340808e79e21661594a339fc76d9fa03da61b897
|
|
| MD5 |
15a10f49a96d77f4ccc024f21b6e2420
|
|
| BLAKE2b-256 |
8dc5344f23eaa0119a5b2456e9f86ec22170debee4b41ea605da77798a512f30
|
File details
Details for the file 20XX-0.1.2-py3-none-any.whl.
File metadata
- Download URL: 20XX-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e71722d307e72126c35d5721f2c75e9083d637d305a6641ed6c22da8ec4206c
|
|
| MD5 |
361257fda8ff91bce9065ee48d777e1a
|
|
| BLAKE2b-256 |
adcf1768e3369fbcc4d4353da6cf1ff0499cee2095981c1cc27379b653e5bbf3
|