Go to file
2025-04-11 16:55:32 +08:00
.idea Update JSON out 2023-04-10 16:18:13 +08:00
evals Week7 done 2022-10-26 11:49:14 +08:00
fromServer Before Accelarate 2023-03-30 15:14:30 +08:00
img Add Welcome & Fixed issues 2022-12-09 21:41:03 +08:00
levels Update levels 2023-04-26 14:43:09 +08:00
localData Update json output & PartII calculator 2023-04-10 20:33:36 +08:00
Mario-AI-Interface Update date 2023-04-26 15:51:26 +08:00
out/production/EDRL-web/META-INF Initial Commit 2022-10-20 20:08:31 +08:00
reps Update left wording 2023-04-03 18:30:28 +08:00
templates Update top.png 2023-04-27 16:38:14 +08:00
.gitattributes Initial commit 2022-10-20 19:57:04 +08:00
.gitignore Update JSON out 2023-04-10 16:18:13 +08:00
.python-version 加入版本控制,解决没有data文件夹的bug 2025-04-11 16:55:32 +08:00
clearData.txt Update clearData.txt 2023-04-26 16:11:10 +08:00
EDRL-web.iml Initial Commit 2022-10-20 20:08:31 +08:00
IDManager.py 加入版本控制,解决没有data文件夹的bug 2025-04-11 16:55:32 +08:00
main.py Update date 2023-04-26 15:51:26 +08:00
Mario-AI-Interface.jar Update JSON out 2023-04-10 16:18:13 +08:00
Mario-AI-Interface.jar.js Update JSON out 2023-04-10 16:18:13 +08:00
newMain.py Accelerate Try 2023-04-03 14:03:25 +08:00
play.html Post success 2022-10-20 22:48:14 +08:00
pyproject.toml 加入版本控制,解决没有data文件夹的bug 2025-04-11 16:55:32 +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
uv.lock 加入版本控制,解决没有data文件夹的bug 2025-04-11 16:55:32 +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