Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 1.71 KB

README.md

File metadata and controls

77 lines (50 loc) · 1.71 KB

Monad Road

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

Game

Editor

Interpreter

You can open the Haskell (GHCi) interpreter using cabal or directly.

  1. Using cabal
$ cabal repl
  1. Using GHCi
$ ghci -i="src" -i="tests" src/Main.hs

Tests

This project uses the HUnit library to build unit tests.

You can run the tests using any of the following alternatives:

  1. Using cabal
$ cabal test
  1. 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
  1. Using the runhaskell wrapper
$ runhaskell -i="src" -i="tests" tests/Spec.hs

Documentation

It's possible to generate documentation files using Haddock.

  1. Using cabal
$ cabal haddock --haddock-all
  1. Using haddock directly
$ haddock -h -o doc/html src/*.hs

Group