Haskell gravity simulation

This was my joint-first place winning entry to the annual Haskell coding competition at my university. The briefing was to "make something that looks nice" using Haskell. It's a 2D gravity simulation I wrote using the package Gloss.


While I enjoyed working with Haskell, I had some sanity-breaking type errors with most of the calculations as the language is extremely particular about data types. It would have been much more straightforward to code this in Python, but I appreciate the advantages of such a language.

Source code on GitHub.

Comments

Popular posts from this blog

Writing a MicroPython Pi-hole for the ESP8266

The Casio F-91W

Mini server update