May-09-2022, 05:16 PM
(This post was last modified: May-09-2022, 05:16 PM by deanhystad.)
It is your best guess at how far you are from the solution? Is it how many flips you think might be required? Is it how many pancakes are wrong? There must be something in your assignment that says what heuristic means for this particular problem. My guess is it is the count of pancakes in the wrong position.
Now I really find it odd that you are not using the heuristic value since it it is part of the equations that helps you choose the best route to the solution.
I also find the A_Star_Node.__gt__() method very odd. This should make some kind of comparison and return a True or False value. Yours returns None an does some kind of list update operation. Not good coding in my opinion.
Now I really find it odd that you are not using the heuristic value since it it is part of the equations that helps you choose the best route to the solution.
I also find the A_Star_Node.__gt__() method very odd. This should make some kind of comparison and return a True or False value. Yours returns None an does some kind of list update operation. Not good coding in my opinion.