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.
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
Post a Comment