Skip to content

Instantly share code, notes, and snippets.

@harisfi
Created September 14, 2023 01:21
Show Gist options
  • Save harisfi/4735399e065f28ac305ec664ed74511b to your computer and use it in GitHub Desktop.
Save harisfi/4735399e065f28ac305ec664ed74511b to your computer and use it in GitHub Desktop.
8puzzle.txt
h1 = 5
d1 = |2-0|+|2-0| = 4
d2 = |0-0|+|1-1| = 0
d3 = |2-0|+|1-2| = 3
d4 = |0-1|+|2-0| = 3
d5 = |1-1|+|1-1| = 0
d6 = |1-1|+|2-2| = 0
d7 = |0-2|+|0-0| = 2
d8 = |2-2|+|0-1| = 1
h2 = 4 + 0 + 3 + 3 + 0 + 0 + 2 + 1 = 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment