Skip to main content

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

Metadata

Release files for 20XX 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for 20XX 0.1.2
File Size Uploaded Provenance
20XX-0.1.2.tar.gz 5.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for 20XX 0.1.2
File Interpreter ABI Platform
20XX-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / 20XX-0.1.2.tar.gz

Download URL 20XX-0.1.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ff100db4bb7ac65515a0c14c340808e79e21661594a339fc76d9fa03da61b897
BLAKE2b-256 checksum
How to use checksums
8dc5344f23eaa0119a5b2456e9f86ec22170debee4b41ea605da77798a512f30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / 20XX-0.1.2-py3-none-any.whl

Download URL 20XX-0.1.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e71722d307e72126c35d5721f2c75e9083d637d305a6641ed6c22da8ec4206c
BLAKE2b-256 checksum
How to use checksums
adcf1768e3369fbcc4d4353da6cf1ff0499cee2095981c1cc27379b653e5bbf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for 20XX 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page