Catalog PyPI
PACKAGE EXPLORERView in registry

20XX

PyPI

=?utf-8?b?MjBYWCBpcyBhIFBldHRpbmdab28tYmFzZWQgbGlicmFyeSBmb3IgTWVsZWUuICjijJDilqBf4pagKQ==?=

Versions collected1
Direct dependencies4From release 0.1.2
Last observed20 Oct, 15:21 UTC

README

Version 0.1.2 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.26 Nov 20224

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
willdudley/20xx

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 15:21 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1aa0889231609b3980a06e605e00e002dbf10ac6690cacbf5daa71bdd424959e