#+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