aboutsummaryrefslogtreecommitdiff
path: root/README.org
blob: 2ed91a17f8f972d925ff6a05efb882b10f12ecac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#+title: Introduction to Haskell
#+date: 2024H2

* Task
:PROPERTIES:
:CUSTOM_ID: task
:END:
During the completion of practical assignment No. 2, it is necessary
to implement two programs in the Haskell language:
- Calculate all pairs of coordinates /(x, y)/ for the given fractal to a
  depth of /n/ steps and output them as a list of lists of pairs, where
  each level of recursion is a list of pairs.  Fractal variant: *Peano
  curve*.
- Implement the given game and strategy as follows: in the code,
  define a list containing the user’s moves; implement a function, the
  defining function of strategies and the function that organizes the
  game (the game it should last no more than 100 moves).  A variant of
  the game: *Nim* (one pile of M stones, the player can not take more
  than K stones).
For each part of the task, you need to write a =.hs= a file containing
all the necessary Haskell code.

* Documentation
:PROPERTIES:
:CUSTOM_ID: documentation
:END:
The exported report can be found at [[https://git.michalec.dev/files/uni/term-05/func-prog/lab-02/report.pdf][this link]].

* Unlicense
:PROPERTIES:
:CUSTOM_ID: unlicense
:END:
#+include: UNLICENSE verse