#!/bin/sh
###set -e

trap "exit" INT

files=${1:-assignment20188-*}

for sd in $files; do
  cd $sd
  echo $sd
  touch .
  cp ../../../marking3/knight3_test.sh .
  cp ../../../marking3/knight_test6.scala .
  cp ../../../marking3/knight_test7.scala .
  cp ../../../marking3/knight_test8.scala .
  cp ../../../marking3/knight_test9.scala .
  ./knight3_test.sh output
  rm knight3_test.sh
  rm knight_test6.scala
  rm knight_test7.scala
  rm knight_test8.scala
  rm knight_test9.scala
  cd ..
done


