In essence, rules make programs more intelligent.

Do you remember the door sequence from earlier?

Well done! Now, what if the door was unlocked from the start? And what if it was open?

Almost! Just imagine you're standing in front of a door that's closed and locked.