Skip to content

Instantly share code, notes, and snippets.

object james_bond_jr {
type State = Vector[Int]
val initialState: State = Vector(1,2,2,1, 3,4,4,3, 3,4,4,3, 2,4,4,2)
val endState: State = Vector(4,3,4,2, 3,1,2,4, 4,2,4,3, 2,4,3,1)
trait Move {
def act(state: State): State
}
case class MoveLeft(row: Int) extends Move {