Go to file
2022-11-03 23:56:04 +08:00
__pycache__ update thank you 2022-11-03 23:56:04 +08:00
.idea update thank you 2022-11-03 23:56:04 +08:00
data update thank you 2022-11-03 23:56:04 +08:00
evals Week7 done 2022-10-26 11:49:14 +08:00
Flask/.idea Post success 2022-10-20 22:48:14 +08:00
img Initial Commit 2022-10-20 20:08:31 +08:00
levels add id 2022-11-03 22:07:08 +08:00
Mario-AI-Interface Update Web Live System 2022-11-03 23:26:25 +08:00
out/production/EDRL-web/META-INF Initial Commit 2022-10-20 20:08:31 +08:00
reps update thank you 2022-11-03 23:56:04 +08:00
templates update thank you 2022-11-03 23:56:04 +08:00
.gitattributes Initial commit 2022-10-20 19:57:04 +08:00
.gitignore Add jar 2022-11-03 22:10:41 +08:00
EDRL-web.iml Initial Commit 2022-10-20 20:08:31 +08:00
IDManager.py Done Alpha Version 2022-11-03 22:52:38 +08:00
main.py update thank you 2022-11-03 23:56:04 +08:00
Mario-AI-Interface.jar Update Web Live System 2022-11-03 23:26:25 +08:00
Mario-AI-Interface.jar.js Update Web Live System 2022-11-03 23:26:25 +08:00
play.html Post success 2022-10-20 22:48:14 +08:00
pyExcel.py Add Questionare & Excel Saving 2022-11-03 17:07:12 +08:00
README.md Initial Commit 2022-10-20 20:08:31 +08:00
replay.html Initial Commit 2022-10-20 20:08:31 +08:00

Build

  • Download CheerpJ from https://leaningtech.com/download-cheerpj/ and unzip it.
  • Pack the Java project (Mario-AI-Interface) into a runnable jar with eclipse, selecting Play as main class. I set the java compiler as 1.8 when packing jar (right click the project -> properties -> java compiler -> java compliance level).
  • Run following cmd instructions:
    cd [where CheerjP is unziped]
    python cheerpjfy.py [path of the jar]
    
    A .jar.js file will be created.
  • Copy both .jar and .jar.js files into the project root.
  • Add a html file (See play.html as an example).

Run

  • Start a web server at the project root. For example, go to project root path and run python -m http.server 8080 or http-server -p 8080 (NPM).
  • Access the url (e.g. 127.0.0.:8080/play.html) in a broswer.

Resources