Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
8 puzzle game
#5
(Nov-04-2018, 10:28 AM)aliyark145 Wrote: [python]
from copy import deepcopy
...

This code is already very efficient (compared to my 3 other 8-puzzle solvers)! The only thing is that the empty cell is at start instead of at the end of the 3x3 matrix, as most n-puzzlers are. I am not sure if it is built to work in this way only., Anyway, I tried to fix this but the way is not evident and it seems it will take some time … If it's worthwhile, can you give me a hint of how to do that.
Reply


Messages In This Thread
8 puzzle game - by aliyark145 - Nov-03-2018, 07:10 AM
RE: 8 puzzle game - by j.crater - Nov-03-2018, 10:40 AM
RE: 8 puzzle game - by aliyark145 - Nov-04-2018, 10:28 AM
RE: 8 puzzle game - by Alkis - May-30-2020, 05:54 PM
RE: 8 puzzle game - by aliyark145 - Nov-04-2018, 03:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A sign-Reversal Puzzle HY2000 2 2,483 Dec-05-2019, 11:55 AM
Last Post: HY2000
  Cross word puzzle solve using python constraint library aliyark145 1 3,296 Nov-29-2018, 10:53 AM
Last Post: Larz60+
  Simple Eight-Puzzle not working! BenjaminDJ 2 3,182 May-04-2018, 12:17 PM
Last Post: BenjaminDJ
  Magic Square Puzzle Harnick 1 4,889 Aug-09-2017, 04:51 PM
Last Post: nilamo
  Image Puzzle Digitalchemist 6 7,328 Jun-05-2017, 07:56 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020