Update debug info

This commit is contained in:
bigJIU 2023-03-07 20:55:12 +08:00
parent 4b7513a30a
commit 0c6bbae1bc
4 changed files with 8 additions and 7 deletions

4
.idea/workspace.xml generated
View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="c32bfd4e-6189-47f3-9d6c-c1825d3d7e5f" name="Changes" comment="" />
<list default="true" id="c32bfd4e-6189-47f3-9d6c-c1825d3d7e5f" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/Mario-AI-Interface/src/Play.java" beforeDir="false" afterPath="$PROJECT_DIR$/Mario-AI-Interface/src/Play.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -33,9 +33,8 @@ public class Play {
game = new MarioGame();
String levelName = "t1";
String levelPath = String.format("/app/levels/%s.lvl", levelName); // For web
String repPath = String.format("/files/lvl1_sav.rep"); // For web
//game.playGame(new HumanAgent(true),getLevel(levelPath),0,repPath,10);
game.playGame(Replay.getRepAgentFromFile(repPath),getLevel(levelPath), 10, repPath,10);
String repPath = String.format("/files/%s_sav.rep", levelName); // For web
game.playGame(new HumanAgent(true),getLevel(levelPath),0,repPath,10);
return true;
}