Jump to content

15 puzzle solver: Difference between revisions

m
→‎{{header|Python}}: format solutions under separate headings
(Neater C++ solution)
m (→‎{{header|Python}}: format solutions under separate headings)
Line 2,365:
 
=={{header|Python}}==
===Iterative Depth A*===
From https://codegolf.stackexchange.com/questions/6884/solve-the-15-puzzle-the-tile-sliding-puzzle
 
Line 2,575 ⟶ 2,576:
</pre>
 
===A* with good heuristic===
A* version
 
a_star.py
 
<lang Python>
"""
2,172

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.