I was trying to put my get_surrounding_cardinals() into a dictionary as keys, and it kept returning an error:
“Type Position unhashable:”
To fix this you should add the following code to positionals.py, in the class Position at the end after eq is defined:
return hash((self.x, self.y))
I hope it helps.
If I was the only one with this problem consider me as a newbie:P