Starting from:

$25

Functional-Programming - Assignment 3 - Elm project - Solved

3.1 
1.    Unzip the Project.zip folder. You should find:

2 files in the src folder:

–     Main.elm - for the application itself

–     Card.elm - for the functions and types you defined in the previous assignments

1 file in the tests folder:

–     Tests.elm - for testing your implementation

2.    Edit the first line of each of the source files as described in the comments.

3.    Edit the source files in the src folder with your solutions.

4.    When done, zip this Project folder and name the zip archive with the following format:

Project hFirstNamei hLastNamei hGroupi

Examples of valid names:

Project John Doe  30432.zip

Project Ion  Popescu 30434.zip

Project Gigel-Dorel  Petrescu 30431.zip

Examples of invalid names:

Solutions.zip

Project.zip

Solutii Project  Ion Popescu.zip

3.2       Project resources
Table 3.1: Lab Resources

Resource
Link
Blackjack rules
https://en.wikipedia.org/wiki/Blackjack
Elm guide
https://guide.elm-lang.org/
Elm core library
https://package.elm-lang.org/packages/elm/core/1.0.5/
Elm Random package
https://package.elm-lang.org/packages/elm/random/latest/
Elm Html package
https://package.elm-lang.org/packages/elm/html/latest/Htm
l

3.3       Project 
In this project you will develop a basic blackjack web app. You will be given some starting (boilerplate) code, which you will have to complete in order to obtain a functional application.

The user of the app should be able to click on a button to draw a card and the drawn cards (the user’s hand) should be shown as huge unicode characters. The user should also be able to toggle with a second button whether the cards remaining in the deck should also be shown or not. The user should see their current score and a message when they win (obtain a score of 21) or lose (obtain a score over 21) the game.

3.4       Project tasks
 

More products