Skip to main content

Kaggle Environments

Project description


pip install kaggle-environments

BETA RELEASE - Breaking changes may be introduced!


from kaggle_environments import make

# Setup a tictactoe environment.
env = make("tictactoe")

# Basic agent which marks the first available cell.
def my_agent(obs):
  return [c for c in range(len(obs.board)) if obs.board[c] == 0][0]

# Run the basic agent against a default agent which chooses a "random" move.[my_agent, "random"])

# Render an html ipython replay of the tictactoe game.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kaggle-environments, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size kaggle_environments-0.1.6-py3-none-any.whl (41.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size kaggle-environments-0.1.6.tar.gz (30.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page