# HG changeset patch # User Christian Urban # Date 1479395567 0 # Node ID 8e866d0af03a2339e0167df2e07cd042b37bed1c # Parent 93a2b6e4b84c9598400003c4a23f759f1d17c015 updated diff -r 93a2b6e4b84c -r 8e866d0af03a cws/cw02.pdf Binary file cws/cw02.pdf has changed diff -r 93a2b6e4b84c -r 8e866d0af03a cws/cw02.tex --- a/cws/cw02.tex Thu Nov 17 11:24:45 2016 +0000 +++ b/cws/cw02.tex Thu Nov 17 15:12:47 2016 +0000 @@ -28,7 +28,8 @@ \textbf{Important:} Do not use any mutable data structures in your submissions! They are not needed. This excluded the use of \texttt{ListBuffer}s, for example. Do not use \texttt{return} in your -code! It has a different meaning in Scala, than in Java. Feel free to +code! It has a different meaning in Scala, than in Java. +Do not use \texttt{var}! This declares a mutable variable. Feel free to copy any code you need from files \texttt{knight1.scala}, \texttt{knight2.scala} and \texttt{knight3.scala}. Make sure the functions you submit are defined on the ``top-level'' of Scala, not