Created
November 20, 2012 14:51
-
-
Save jbrechtel/4118377 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (def possible-states [:clean :dirty :wall]) | |
| (def state-permutations | |
| (for [north possible-states, | |
| south possible-states, | |
| east possible-states, | |
| west possible-states, | |
| curr possible-states] | |
| {:north north :south south :east east :west west :current curr})) | |
| (def states (zipmap state-permutations (range (count state-permutations)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment