cws/cw02.tex
changeset 59 8e866d0af03a
parent 50 9891c9fac37e
child 60 f099bcf9cff1
equal deleted inserted replaced
58:93a2b6e4b84c 59:8e866d0af03a
    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