Skip to content

Run a simple agent through user-defined super-mario chunks and determine the playability proportion.

License

Notifications You must be signed in to change notification settings

zhihanyang2022/mario-playability-test

Repository files navigation

Movement Rules

The agent is always moving towards the right. Whenever the agent is stuck (horizontal speed is zero) or approaching a trap, the agent will jump (unless a block is right above the agent).

Demo

Usage

Run agent on 100 original SMB chunks: python test_loop.py org

Run agent on 100 VAE-generated SMB chunks: python test_loop.py org

Run agent on 100 (under-fitting) GMM-generated SMB chunks: python test_loop.py gmm-[components]

  • Components to choose from: [ 8, 28, 48, 68, 88, 108, 128]

  • E.g., python test_loop.py gmm-128

Run agent on 100 (best-fitting) GMM-generated SMB chunks: python test_loop.py gmm-optim

The playability proportion (the number of chunks passable / the total number of chunks) is printed at the end after the agent has tried traversing all 100 chunks.

Pygame Compatibility

My Python version is 3.6.9 and my Pygame vesion is 2.0.0.dev3.

You can update your Pygame to this version using: pip install pygame==2.0.0.dev3

See this post for discussion: pygame/pygame#555

Citation

Please cite this project if you use it in your research.

@misc{mario-playability-test,
  author = {Zhihan Yang},
  howpublished = {GitHub},
  title = {{M}ario {P}layability {T}est},
  URL = {https://github.com/zhihanyang2022/mario-playability-test},
  year = {2020},
}

About

Run a simple agent through user-defined super-mario chunks and determine the playability proportion.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages