This code is python code of Environment for Reinforcement Learning for game:
Paper Soccer https://en.wikipedia.org/wiki/Paper_soccer
Image preview is implemented and it depends on:
- opencv
- numpy (basic code only so any version should work fine)
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
For quick start you can check this notebook. (some more dependencies here)
Code author:
The project is licensed upon:
MIT License