Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

A Deep-Q Network playing a single player Pong game. Network done in Python (Tensorflow-gpu) with the single player Pong game implemented in C++ (Openframeworks) and both binded with Pybind11.

Notifications You must be signed in to change notification settings

consequencesunintended/loneliless

Repository files navigation

LONELILESS

Buy Me A Coffee

 

A Deep-Q Network for an NPC-only Pong game. Network done in Python (Tensorflow-gpu) with the single player Pong game implemented in C++ (Openframeworks) and both binded with Pybind11.

Instructions

- Download the project from Github and unzip in a desired folder. 

- Download Pybind11 from the Github page https://github.com/pybind/pybind11  and copy the contents of the include, folder which should be only one folder called pybind11, to your Python default folder which in my case is C:\Python36_64\include.

- Download https://openframeworks.cc/download/ for Windows and unzip the file. Run projectGenerator.exe from the projectGenerator-vs folder in your unzipped files.

- Click on the magnifier in the Project path to change the path to the path you unzipped the Github project. Also change the Project name to the Github project name which is loneliless-master

- Now the green Generate button should have changed to Update. Now click on Update to add OpenFrameworks engine to the downloaded project. You should be getting a message like the one below

- Click “Open in IDE”. (or you can manually do that by going to you project folder and clicking on loneliless.sln)

-In Visual Studio now you need to fix the linking path for Pybind11.

-Right click on the project and click properties

-Select C/C++

-Install pybind11 by running this command in command line: pip install pybind11

-Navigate now to the Linker

-And add the python folder to the “Additional Library Directories”

-Click Ok and now you should be able to run the project.

Dependencies

OpenFrameworks

Pybind11

Python 3.x

Tensorflow 2.x

Numpy

About

A Deep-Q Network playing a single player Pong game. Network done in Python (Tensorflow-gpu) with the single player Pong game implemented in C++ (Openframeworks) and both binded with Pybind11.

Topics

Resources

Stars

Watchers

Forks