Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. for each state considered
  2. if no block moved return false
  3. if block moved onto goal return false
  4. if block moved next to two walls or 1 block & 1 wall that are not opposite each other return true
  5. if there are zero walls return false
  6. 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