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.1.tar.gz (15.2 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.1-py2.py3-none-any.whl (14.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: vimgolf_gym-0.0.1.tar.gz
  • Upload date:
  • Size: 15.2 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.1.tar.gz
Algorithm Hash digest
SHA256 e055d087e04bfef7fbeb40933eed5f1f09536263b51919e75a74ede0ef70f36d
MD5 78de5b16279a8ec2f06f557aca15d18f
BLAKE2b-256 55985f226804ba17739fbf7f40071c9d4bbde3786bff18cb92f11988a216692b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vimgolf_gym-0.0.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 48a1acc4ca9680a1b374db3e3cbe1336f8a4d1194e27dd564ef32ceac1dc28aa
MD5 36ade0f30a031e68dea3409041840e23
BLAKE2b-256 3394dd1131ed6b64560f5d5ca22018b406c2408436f539234c251b1df51b73ca

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