ClassicComputerScienceProblemsInPython
ClassicComputerScienceProblemsInPython copied to clipboard
Define equality of MCState
While debugging missionaries.py
, I discovered that the explored
set accumulates duplicate MCState
s.
To solve this problem, I've overridden the __eq__
and __hash__
of the MCState
.
This patch resolves the issue [#22]