Skip to main content

A gym environment for VimGolf challenges

Project description

vimgolf-gym

OpenAI gym like environment and benchmark for Vimgolf.

Installation

pip install vimgolf-gym

Usage

import vimgolf_gym

env = vimgolf_gym.make("vimgolf-v0")
env.act("")
img = env.screenshot() # output a PIL image
env.render() # preview screenshot
env.reset()

if env.solved:
   env.last_solution

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

You can contribute in many ways:

Types of Contributions

Report Bugs

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your local setup that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.

Fix Bugs

Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.

Implement Features

Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.

Write Documentation

vimgolf-gym could always use more documentation, whether as part of the official vimgolf-gym docs, in docstrings, or even on the web in blog posts, articles, and such.

Submit Feedback

The best way to send feedback is to file an issue at https://github.com/james4ever0/vimgolf-gym/issues.

If you are proposing a feature:

  • Explain in detail how it would work.
  • Keep the scope as narrow as possible, to make it easier to implement.
  • Remember that this is a volunteer-driven project, and that contributions are welcome :)

Get Started!

Ready to contribute? Here's how to set up vimgolf-gym for local development.

  1. Fork the vimgolf-gym repo on GitHub.

  2. Clone your fork locally:

    $ git clone git@github.com:your_name_here/vimgolf-gym.git
    
  3. Create a branch for local development:

    $ git checkout -b name-of-your-bugfix-or-feature
    
  4. Now you can make your changes locally.

  5. When you're done making changes, check that your changes pass the tests:

    $ make test
    
  6. Commit your changes and push your branch to GitHub:

    $ git add .
    $ git commit -m "Your detailed description of your changes."
    $ git push origin name-of-your-bugfix-or-feature
    
  7. Submit a pull request through the GitHub website.

Pull Request Guidelines

Before you submit a pull request, check that it meets these guidelines:

  1. The pull request should include tests.
  2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.md.
  3. The pull request should work for Python 3.5, 3.6, 3.7 and 3.8. Check Travis CI to make sure that the tests pass for all supported Python versions.

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

vimgolf_gym-0.0.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vimgolf_gym-0.0.2-py2.py3-none-any.whl (14.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file vimgolf_gym-0.0.2.tar.gz.

File metadata

  • Download URL: vimgolf_gym-0.0.2.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for vimgolf_gym-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8cba0bb96d0ae1da285d6e9017f313e6b7ceeaffeb7d135ca54b7fc949f46222
MD5 8089b592377f2d47a4254ab3b62669a7
BLAKE2b-256 da48251f6c506e84a93b6ad91b97be78eb15fadbe3e23fa43adacbc98650c46c

See more details on using hashes here.

File details

Details for the file vimgolf_gym-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: vimgolf_gym-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for vimgolf_gym-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 83962894b409b8b84b574c4ba2234e47aed1dbeafd49fba0ffedb492a760276a
MD5 e7aeb5a09b54fddac52b6e305031447d
BLAKE2b-256 c77675f506434cda1c6efdce7ca494f5cd28d049e781e658669417139a1b71bf

See more details on using hashes here.

Supported by

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