diff options
| author | 2026-11-08 02:51:49 +0000 | |
|---|---|---|
| committer | 2026-11-08 02:51:49 +0000 | |
| commit | 80893fa3e272d9792ba1206f7006e8defeeccb6e (patch) | |
| tree | 1867dba062a481bf59313b0fbb16f416834a11a3 /README.org | |
| download | lab-02-master.tar.gz | |
Diffstat (limited to 'README.org')
| -rw-r--r-- | README.org | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/README.org b/README.org new file mode 100644 index 0000000..2ed91a1 --- /dev/null +++ b/README.org | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | #+title: Introduction to Haskell | ||
| 2 | #+date: 2024H2 | ||
| 3 | |||
| 4 | * Task | ||
| 5 | :PROPERTIES: | ||
| 6 | :CUSTOM_ID: task | ||
| 7 | :END: | ||
| 8 | During the completion of practical assignment No. 2, it is necessary | ||
| 9 | to implement two programs in the Haskell language: | ||
| 10 | - Calculate all pairs of coordinates /(x, y)/ for the given fractal to a | ||
| 11 | depth of /n/ steps and output them as a list of lists of pairs, where | ||
| 12 | each level of recursion is a list of pairs. Fractal variant: *Peano | ||
| 13 | curve*. | ||
| 14 | - Implement the given game and strategy as follows: in the code, | ||
| 15 | define a list containing the user’s moves; implement a function, the | ||
| 16 | defining function of strategies and the function that organizes the | ||
| 17 | game (the game it should last no more than 100 moves). A variant of | ||
| 18 | the game: *Nim* (one pile of M stones, the player can not take more | ||
| 19 | than K stones). | ||
| 20 | For each part of the task, you need to write a =.hs= a file containing | ||
| 21 | all the necessary Haskell code. | ||
| 22 | |||
| 23 | * Documentation | ||
| 24 | :PROPERTIES: | ||
| 25 | :CUSTOM_ID: documentation | ||
| 26 | :END: | ||
| 27 | The exported report can be found at [[https://git.michalec.dev/files/uni/term-05/func-prog/lab-02/report.pdf][this link]]. | ||
| 28 | |||
| 29 | * Unlicense | ||
| 30 | :PROPERTIES: | ||
| 31 | :CUSTOM_ID: unlicense | ||
| 32 | :END: | ||
| 33 | #+include: UNLICENSE verse | ||
