Clone of the game Crossy Road in Haskell, using the Gloss library! Developed as a project for the IT Laboratories I (Laboratórios de Informática I) class, part of the first year's curriculum of the Software Engineering degree at University of Minho.
This project obtained a final grade of 20/20 ✨
You can open the Haskell (GHCi) interpreter using cabal or directly.
- Using
cabal
$ cabal repl
- Using GHCi
$ ghci -i="src" -i="tests" src/Main.hs
This project uses the HUnit library to build unit tests.
You can run the tests using any of the following alternatives:
- Using
cabal
$ cabal test
- Using GHCi
$ ghci -i="src" -i="tests" tests/Spec.hs
>>> runTestsT1 -- Run first task's tests
>>> runTestsT2 -- Run second task's tests
>>> runTestsT3 -- Run third task's tests
>>> runTestsT4 -- Run fourth task's tests
>>> runTestsT5 -- Run fifth task's tests
>>> main -- Run all tests
- Using the
runhaskell
wrapper
$ runhaskell -i="src" -i="tests" tests/Spec.hs
It's possible to generate documentation files using Haddock.
- Using
cabal
$ cabal haddock --haddock-all
- Using
haddock
directly
$ haddock -h -o doc/html src/*.hs
- A104356 João d'Araújo Dias Lobo
- A104439 Rita da Cunha Camacho