- Own version of the iconic game Crossy Road coded in pure Haskell, this project was developed within the scope of the subject "Laboratorios de Informática I" in the first semester of my Degree in Software Engineering at UMinho.
If you already have an SSH key configured, simply clone the repository:
$ git clone git@gitlab.com:uminho-di/li1/2223/2022li1g035.git
$ cd 2022li1g035If you don't, use the the link:
$ git clone https://gitlab.com/uminho-di/li1/2223/projetos/2022li1g035.git
$ cd 2022li1g035Open the Interpreter of Haskell (GHCi) using cabal ou directly.
- Using cabal
$ cabal repl- Using GHCi
$ ghci -i="src" -i="tests" src/Main.hsThe project uses the HUnit library to perform unit tests.
You can run the tests using one of the following alternatives:
- Using
cabal
$ cabal test- Using GHCi
$ ghci -i="src" -i="tests" tests/Spec.hs
>>> runTestsT1 -- Run task 1 tests
>>> runTestsT2 -- Run task 2 tests
>>> runTestsT3 -- Run task 3 tests
>>> runTestsT4 -- Run task 4 tests
>>> main -- Run all tests- Using the
runhaskellwrapper
$ runhaskell -i="src" -i="tests" tests/Spec.hsYou can generate documentation with Haddock.
- Using
cabal
$ cabal haddock --haddock-all- Using
haddockdirectly
$ haddock -h -o doc/html src/*.hs- A103995 José António Costa Soares;
- A104090 Nuno Miguel Parente Morais;


