flask added
This commit is contained in:
parent
bf7d0b697d
commit
5f11d14762
1
.gitignore
vendored
1
.gitignore
vendored
@ -22,3 +22,4 @@
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
replay_pid*
|
||||
*.xml
|
||||
|
8
.idea/workspace.xml
generated
8
.idea/workspace.xml
generated
@ -6,7 +6,11 @@
|
||||
</artifacts-to-build>
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="4b9312b1-50a2-48ef-899f-df123ed058fa" name="Changes" comment="" />
|
||||
<list default="true" id="4b9312b1-50a2-48ef-899f-df123ed058fa" name="Changes" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/play.html" beforeDir="false" afterPath="$PROJECT_DIR$/play.html" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
@ -41,7 +45,7 @@
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1658216972707</updated>
|
||||
<workItem from="1666267203057" duration="246000" />
|
||||
<workItem from="1666267203057" duration="1289000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
8
Flask/.idea/.gitignore
generated
vendored
Normal file
8
Flask/.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
8
Flask/.idea/Flask.iml
generated
Normal file
8
Flask/.idea/Flask.iml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
16
Flask/main.py
Normal file
16
Flask/main.py
Normal file
@ -0,0 +1,16 @@
|
||||
# This is a sample Python script.
|
||||
|
||||
# Press Shift+F10 to execute it or replace it with your code.
|
||||
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
|
||||
|
||||
|
||||
def print_hi(name):
|
||||
# Use a breakpoint in the code line below to debug your script.
|
||||
print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
|
||||
|
||||
|
||||
# Press the green button in the gutter to run the script.
|
||||
if __name__ == '__main__':
|
||||
print_hi('PyCharm')
|
||||
|
||||
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
|
@ -22,7 +22,11 @@
|
||||
|
||||
cheerpjRunJar("/app/Mario-AI-Interface.jar");
|
||||
var returnVal = cjCall("Play", "otherMain", "0", "f_l", "0");//
|
||||
returnVal.then(function(e) { console.log("the return val is ready"); });
|
||||
returnVal.then(function(e) {
|
||||
console.log("the return val is ready");
|
||||
console.log(returnVal.data[0]);
|
||||
|
||||
}).catch(e => console.log("Critical failure: " + e.message));
|
||||
//console.log(returnVal);
|
||||
// cheerpjRunJar("/app/Mario-AI-Interface.jar");
|
||||
// var actionSequenceInBytes = cjCall("MarioProxy", "play", "0", "f_l", "0");
|
||||
|
Loading…
Reference in New Issue
Block a user