To pratice functional programming I decided to make a gravitational simulation using racket's(scheme) universe framework.
- Download Racket
- Open gravity-simulation.rkt with the DrRacket IDE
- Hit Run and have fun!
Try changing the initial velocity of the space bodies to see how they react. :)