(Board b, Node p, int m)
| 23 | final int manhattanScore; |
| 24 | |
| 25 | Node(Board b, Node p, int m) { |
| 26 | board = b; |
| 27 | prev = p; |
| 28 | moves = m; |
| 29 | manhattanScore = m + b.manhattan(); |
| 30 | } |
| 31 | |
| 32 | public int compareTo(Node that) { |
| 33 | return Integer.compare(this.manhattanScore, that.manhattanScore); |