bwosh / papersoccer_env

Environment for Reinforcement Learning with PAPER SOCCER

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paper Soccer RL Environment

This code is python code of Environment for Reinforcement Learning for game:

Paper Soccer https://en.wikipedia.org/wiki/Paper_soccer

sample image

Dependencies

Image preview is implemented and it depends on:

  • opencv
  • numpy (basic code only so any version should work fine)

Interface

Board class (inside papersoccer_env.py file) has couple interesting functions/variables including:

  • possible_moves() - gets dictionary o fpossibel moves
  • move(...) - executes one of the move from possible moves returning outcome information
  • draw() - prepares RGB uint8 image with current state visualization
  • data variable containing board fields data

Notebook/Quick Start

For quick start you can check this notebook. (some more dependencies here)

License

Code author:

The project is licensed upon:
MIT License

About

Environment for Reinforcement Learning with PAPER SOCCER

License:MIT License


Languages

Language:Jupyter Notebook 72.5%Language:Python 27.5%