`` `
# Xác định vấn đề 8 trò chơi.
lớp Puzzlestate:
def __init __ (tự, gạch):
self.tiles = gạch
def is_goal_state (tự):
"" "
Kiểm tra xem trạng thái hiện tại có phải là trạng thái mục tiêu không.
Trạng thái mục tiêu là lưới 3x3 với các số 1-8 trong mỗi ô,
và không gian trống (0) trong ô...