Skip to content
Snippets Groups Projects
Commit a0aa4a5c authored by sayanmitracode's avatar sayanmitracode
Browse files

1 ball semi working

parent 46a35a21
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,7 @@ if __name__ == "__main__":
# Longer term: We should initialize by writing expressions like "-2 \leq myball1.x \leq 5"
# "-2 \leq myball1.x + myball2.x \leq 5"
traces = bouncingBall.simulate(10)
# There should be a print({traces}) function
fig = go.Figure()
fig = plotly_simulation_anime(traces, tmp_map, fig)
fig.show()
......
......@@ -51,4 +51,6 @@ class BallAgent(BaseAgent):
return np.array(trace)
if __name__ == '__main__':
aball = BallAgent('red_ball',file_name="/Users/mitras/Dpp/GraphGeneration/demo/ball_bounces.py")
\ No newline at end of file
aball = BallAgent('red_ball',file_name="/Users/mitras/Dpp/GraphGeneration/demo/ball_bounces.py")
trace = aball.TC_simulate({'none'},[5, 10, 2, 2],10)
print(trace)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment