8-puzzle problem solver with tuples
Code:
import math,sys
goal_state = [[1,2,3],[4,5,6],[7,8,0]]
initial_state = [[1,0,3],[4,2,5],[7,8,6]]
initial_state_2 = [[0,2,3],[1,4,6],[7,8,5]]
def convert_to_1D(matrix_2D):
[…]
Original post by DopplerEffect
Leave a Reply
You must be logged in to post a comment.