TDA 452
DIT 142
HT 2016

Functional Programming 2016
Lab Assignment 2

Some notes:

Good luck!

Lab Assignment 2: BlackJack

In this lab assignment, you will implement a Haskell program for playing a card game called BlackJack.

Two parts

The lab assignment is divided up into 2 parts. The description of the full lab assignment is here:

The full Task is described in Section 3 of that document.

The separate parts of this lab assignment are:


Deadlines for each of these parts are given on the home page.


You need the following files:


The exact instructions on what to submit are stated in the document above.

Write your answers in one file, called BlackJack.hs. For each assignment, use Haskell comments to indicate what part of the file contains the answer to the assignment. For answers in natural language please use English; write your answers also in Haskell comments. Remove irrelevant things from the file.

Before you submit your code, Clean It Up! Remember, submitting clean code is Really Important, and simply the polite thing to do. After you feel you are done, spend some time on cleaning your code; make it simpler, remove unneccessary things, etc. We will reject your solution if it is not clean. Clean code:

Please do not submit the given modules Cards.hs and RunGame.hs.

When you are done, please submit it using the Fire system.

Good luck!