cws/main_cw02.tex
changeset 459 d59404a41d5f
parent 458 d9f8245d0861
child 475 59e005dcf163
equal deleted inserted replaced
458:d9f8245d0861 459:d59404a41d5f
    41 
    41 
    42 \noindent
    42 \noindent
    43 In addition, the Scala part comes with reference
    43 In addition, the Scala part comes with reference
    44 implementations in form of \texttt{jar}-files. This allows you to run
    44 implementations in form of \texttt{jar}-files. This allows you to run
    45 any test cases on your own computer. For example you can call Scala on
    45 any test cases on your own computer. For example you can call Scala on
    46 the command line with the option \texttt{-cp danube.jar} and then
    46 the command line with the option \texttt{-cp wordle.jar} and then
    47 query any function from the template file. Say you want to find out
    47 query any function from the template file. Say you want to find out
    48 what the function \texttt{} produces: for this you just need
    48 what the function \texttt{} produces: for this you just need
    49 to prefix it with the object name \texttt{M2}.  If you want to find out what
    49 to prefix it with the object name \texttt{M2}.  If you want to find out what
    50 these functions produce for the list \texttt{List("a", "b", "b")},
    50 these functions produce for the list \texttt{List("a", "b", "b")},
    51 you would type something like:
    51 you would type something like:
    75 
    75 
    76 
    76 
    77 \newpage
    77 \newpage
    78 
    78 
    79 
    79 
    80 \subsection*{Main Part 2 (6 Marks, file wordle.scala)}
    80 \subsection*{Main Part 2 (7 Marks, file wordle.scala)}
    81 
    81 
    82 You probably know the game of Wordle\footnote{\url{https://en.wikipedia.org/wiki/Wordle}}
    82 You probably know the game of Wordle\footnote{\url{https://en.wikipedia.org/wiki/Wordle}}
    83 where you are supposed to guess a five-letter word. The feedback for guesses can help
    83 where you are supposed to guess a five-letter word. The feedback for guesses can help
    84 with the next guess (green letters are correct, orange letters are present, but in the
    84 with the next guess (green letters are correct, orange letters are present, but in the
    85 wrong place). For example:
    85 wrong place). For example: