equal
deleted
inserted
replaced
26 |
26 |
27 \noindent |
27 \noindent |
28 \textbf{Important:} Do not use any mutable data structures in your |
28 \textbf{Important:} Do not use any mutable data structures in your |
29 submissions! They are not needed. This excluded the use of |
29 submissions! They are not needed. This excluded the use of |
30 \texttt{ListBuffer}s, for example. Do not use \texttt{return} in your |
30 \texttt{ListBuffer}s, for example. Do not use \texttt{return} in your |
31 code! It has a different meaning in Scala, than in Java. Feel free to |
31 code! It has a different meaning in Scala, than in Java. |
|
32 Do not use \texttt{var}! This declares a mutable variable. Feel free to |
32 copy any code you need from files \texttt{knight1.scala}, |
33 copy any code you need from files \texttt{knight1.scala}, |
33 \texttt{knight2.scala} and \texttt{knight3.scala}. Make sure the |
34 \texttt{knight2.scala} and \texttt{knight3.scala}. Make sure the |
34 functions you submit are defined on the ``top-level'' of Scala, not |
35 functions you submit are defined on the ``top-level'' of Scala, not |
35 inside a class or object. |
36 inside a class or object. |
36 |
37 |