https://github.com/fluxml/trebuchet.jl
throw stuff
https://github.com/fluxml/trebuchet.jl
Last synced: 7 months ago
JSON representation
throw stuff
- Host: GitHub
- URL: https://github.com/fluxml/trebuchet.jl
- Owner: FluxML
- License: mit
- Created: 2019-01-02T17:47:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-30T06:15:08.000Z (over 2 years ago)
- Last Synced: 2025-02-23T02:03:01.758Z (over 1 year ago)
- Language: Julia
- Homepage:
- Size: 198 KB
- Stars: 21
- Watchers: 3
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trebuchet.jl
Simulate and visualise a Trebuchet.
## Add package
```julia
] add Trebuchet#master
```
## Run example
```julia
# using Blink # if not on Juno or IJulia
using Trebuchet
t = TrebuchetState()
simulate(t)
target = 100 # or nothing
s = visualise(t, target)
if @isdefined(Blink)
body!(Blink.Window(), s)
end
```
## Note:
The code corresponding to [this](https://fluxml.ai/2019/03/05/dp-vs-rl.html) blog post can be found [here](https://github.com/FluxML/model-zoo/blob/master/contrib/games/differentiable-programming/trebuchet/DiffRL.jl)
## References
http://www.virtualtrebuchet.com/#documentation_EquationsOfMotion