# HG changeset patch # User Christian Urban # Date 1606579116 0 # Node ID 7a5ad01a85b5a0da95c57352c8947d91a704b40e # Parent e104e2da83eb10bd561a06f6171e118111892d66 updated diff -r e104e2da83eb -r 7a5ad01a85b5 cws/main_cw04.tex --- a/cws/main_cw04.tex Sat Nov 28 15:37:58 2020 +0000 +++ b/cws/main_cw04.tex Sat Nov 28 15:58:36 2020 +0000 @@ -163,9 +163,9 @@ \subsection*{Reference Implementation} -You\alert{} need to download \texttt{knight1.jar} from KEATS. The one +\mbox{}\alert{}\textcolor{red}{You need to download \texttt{knight1.jar} from KEATS. The one supplied with github does not contain the correct code. See Scala coursework -section. \medskip +section on KEATS.}\medskip \noindent This Scala part comes with three reference implementations in form of @@ -255,6 +255,8 @@ \subsubsection*{Tasks (file knight1.scala)} + + \begin{itemize} \item[(1)] Implement an \texttt{is\_legal} function that takes a dimension, a path and a position as arguments and tests whether the @@ -310,6 +312,12 @@ \subsubsection*{Tasks (file knight1.scala cont.)} +\mbox{}\alert{}\textcolor{red}{You need to copy your \texttt{knight1.scala} + from the preliminary part to the main part and then solve Tasks 4 and 5 + inside the copied file. Do not forget to ``git add'' the file for + pushing the results to the directory \texttt{main4}.}\medskip + + \begin{itemize} \item[(4)] Implement a \texttt{first}-function. This function takes a list of positions and a function $f$ as arguments; $f$ is the name we give to