TDA 452
DIT 142
HT 2017

Functional Programming 2017
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

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

Files

You need the following files:

Submission

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.

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

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:

Feel free to use the hlint program to help with many of these issues and other haskell style issues.

To the Fire System

Good Luck!