Handles the interfacing with the flash game environment.
Just running python environment.py
shows the frames as they are sampled.
Currently a hardcoded agent that just plays with right, left and always jumps after a point.
Windows, because better frame rate.
Use conda because pytorch support outside conda is poor.
Init conda for powershell- conda init powershell
.
Create a conda environment- conda create --name conda_env
.
Activate the environment- conda activate conda_env
.
Install all packages using pip install -r requirements.txt
.
Install pytorch using conda- conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
.