Skip to content

A CrossyRoad like project made with the programming language Haskell

Notifications You must be signed in to change notification settings

2101dudu/CrossyRoadProject-LI1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laboratórios de Informática I Haskell

Made using the Haskell programming language and Gloss Library during the 1st semester of the 1st year

Final Grade: 19/20💎

Preview

Main Menu

Options Menu

Example1

Example2

Repository

Run the command "ghc Main.hs" in the src directory. If it doesn't work, try "ghc Main.hs -package random." Then, run the command "./Main" to start the game.

If you have an SSH key configured on GitLab, you can clone using the following link:

$ git clone https://github.com/2101dudu/CrossyRoadProject-LI1.git
$ cd src

Alternatively, you can clone via HTTPS with the following link:

$ git clone https://gitlab.com/uminho-di/li1/2223/projetos/2022li1g018.git
$ cd src

Interpreter

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

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

Tests

The project uses the HUnit library for unit testing.

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

  1. Using cabal
$ cabal test
  1. Using GHCi
$ ghci -i="src" -i="tests" tests/Spec.hs
>>> runTestsT1 -- Correr os testes tarefa 1
>>> runTestsT2 -- Correr os testes tarefa 2
>>> runTestsT3 -- Correr os testes tarefa 3
>>> runTestsT4 -- Correr os testes tarefa 4
>>> runTestsT5 -- Correr os testes tarefa 5
>>> main -- Correr todos os testes
  1. Using the runhaskell wrapper
$ runhaskell -i="src" -i="tests" tests/Spec.hs

Documentation

You can generate documentation with Haddock.

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

Group 18

  • A104353 Eduardo de Oliveira Sousa Faria;
  • A104089 Nuno Miguel Ribeiro da Silva;

About

A CrossyRoad like project made with the programming language Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published