/gym-splix

Provides a OpenAI-Gym-like environment on the online game Splix.io

Primary LanguagePythonApache License 2.0Apache-2.0

SplixEnvironment

Provides a OpenAI-Gym-like environment on the online game Splix.io

You need to install Gym and Selenium :

pip install gym
pip install selenium

How to Setup up the env :

git clone https://github.com/M3g4lodon/gym-splix.git
cd gym-splix
pip install -e .

To try it :

import gym
import gym_splix


def run():
    env = gym.make("splix-online-v0")
    env.reset()
    while not env.done:
        env.render()
        env.step(env.action_space.sample())  # random action
    env.close()

if __name__ == '__main__':
    run()