cws/cw02.tex
changeset 150 19856bd9ec2d
parent 149 73ce78e5b91c
child 152 16dbc95d7d77
equal deleted inserted replaced
149:73ce78e5b91c 150:19856bd9ec2d
   299   As there might not be such a tour at all, the first-tour function
   299   As there might not be such a tour at all, the first-tour function
   300   needs to return an \texttt{Option[Path]}.\\\mbox{}\hfill[2 Marks]
   300   needs to return an \texttt{Option[Path]}.\\\mbox{}\hfill[2 Marks]
   301 \end{itemize}
   301 \end{itemize}
   302 
   302 
   303 \noindent
   303 \noindent
   304 \textbf{Testing} The first tour function will be called with board
   304 \textbf{Testing:} The first tour function will be called with board
   305 sizes of up to $8 \times 8$.
   305 sizes of up to $8 \times 8$.
   306 \bigskip
   306 \bigskip
   307 
   307 
   308 \noindent
   308 \noindent
   309 \textbf{Hints:} a useful list function: \texttt{.filter(..)} filters a
   309 \textbf{Hints:} a useful list function: \texttt{.filter(..)} filters a