testing3/knight_test6.scala
author Christian Urban <urbanc@in.tum.de>
Mon, 04 Nov 2019 23:20:45 +0000
changeset 312 d8a15207114b
parent 296 12dc251fc47e
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
296
12dc251fc47e updated
Christian Urban <urbanc@in.tum.de>
parents: 247
diff changeset
     1
import CW8b._
247
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(ordered_moves(8, List((3,4), (3,2)), (1, 3)) == List((0,1), (0,5), (2,1), (2,5)))
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
assert(ordered_moves(8, List((4,0)), (0,0)) == List((2,1), (1,2)))
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
assert(ordered_moves(8, List((0,4)), (0,0)) == List((1,2), (2,1)))
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
/*
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
import scala.concurrent._
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
import scala.concurrent.duration._
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
import ExecutionContext.Implicits.global
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
import scala.language.postfixOps 
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
lazy val f = Future {
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
}
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
Await.result(f, 120 second)
50a3b874008a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
*/