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.
-
Fork the vimgolf-gym repo on GitHub.
-
Clone your fork locally:
$ git clone git@github.com:your_name_here/vimgolf-gym.git -
Create a branch for local development:
$ git checkout -b name-of-your-bugfix-or-feature -
Now you can make your changes locally.
-
When you're done making changes, check that your changes pass the tests:
$ make test -
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 -
Submit a pull request through the GitHub website.
Pull Request Guidelines
Before you submit a pull request, check that it meets these guidelines:
- The pull request should include tests.
- 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.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cba0bb96d0ae1da285d6e9017f313e6b7ceeaffeb7d135ca54b7fc949f46222
|
|
| MD5 |
8089b592377f2d47a4254ab3b62669a7
|
|
| BLAKE2b-256 |
da48251f6c506e84a93b6ad91b97be78eb15fadbe3e23fa43adacbc98650c46c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83962894b409b8b84b574c4ba2234e47aed1dbeafd49fba0ffedb492a760276a
|
|
| MD5 |
e7aeb5a09b54fddac52b6e305031447d
|
|
| BLAKE2b-256 |
c77675f506434cda1c6efdce7ca494f5cd28d049e781e658669417139a1b71bf
|