Snake game for OpenAI Gym
Project description
Gym_Snake_Game
Snake game for OpenAI gym
Quick Start
import gym_snake_game
import gym
env = gym.make('Snake-v0', render_mode='human')
d = False
# for human playing
env.play()
# for ai playing
while True:
s, r, d, t, _info = env.step(env.action_space.sample())
if d:
env.reset()
Ming Yu
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
gym_snake_game-0.1.0.tar.gz
(6.6 kB
view details)
File details
Details for the file gym_snake_game-0.1.0.tar.gz.
File metadata
- Download URL: gym_snake_game-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf042e5aecd27bd2dc12da58aed17063150fee07b10bf0636391981d85b6c1a9
|
|
| MD5 |
fb7eefe2e390c4e4981340ea335151c7
|
|
| BLAKE2b-256 |
a3398ac4c14430c34da48b5f09bc53c9f9b9c5250f970234007574deaf129afd
|