Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for each state considered
- if no block moved return false
- if block moved onto goal return false
- if block moved next to two walls or 1 block & 1 wall that are not opposite each other return true
- if there are zero walls return false
- if there is one wall check to see if there is a non deadstate via horizontal/vertical movement
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement