Skip to content

Crossy Road clone in Haskell, using the Gloss library! 🐔

Notifications You must be signed in to change notification settings

joaodiaslobo/monad-road

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Crossy Road clone in Haskell, using the Gloss library! 🐔

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published