Metadata-Version: 2.1
Name: gym_snake_game
Version: 0.1.1
Summary: Snake game for OpenAI Gym
Home-page: https://github.com/NaLooo/Gym_Snake_Game
Author: Ming Yu
Author-email: ming.yu@alumni.stonybrook.edu
License: MIT
Keywords: ai,rl,snake
Platform: any
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Games/Entertainment :: Arcade
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.0
Description-Content-Type: text/markdown
License-File: LICENSE

# Snake game for OpenAI Gym
![Python versions](https://img.shields.io/pypi/pyversions/gym-snake-game)
[![PyPI](https://img.shields.io/pypi/v/gym-snake-game)](https://pypi.org/project/gym-snake-game/)
[![License](https://img.shields.io/github/license/NaLooo/gym-snake-game)](https://github.com/NaLooo/gym-snake-game/blob/master/LICENSE)

 Snake game for OpenAI gym


## Quick Start

```python
import gym_snake_game
import gym

# both work
env = gym.make('Snake-v0', render_mode='human')
env = gym_snake_game.make('Snake-v0', render_mode='human')
env.reset()

# for human playing
env.play()

# for ai playing
while True:
    obs, reward, done, truncated, info = env.step(env.action_space.sample())
    if done:
        break
env.close()

```

**Ming Yu**
