Anonymous user
15 puzzle solver: Difference between revisions
→Implementation
Line 4,656:
def key = table.mkString(",")
def travelled() = parent.length
// Find children/
def children: List[Board] = List(this.up(), this.down(), this.right(), this.left()).flatten
// Map number to positions
|