Created
May 17, 2012 11:33
-
-
Save borkdude/2718301 to your computer and use it in GitHub Desktop.
This file contains 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
user> (defn left? [curr target] (neg? (- (rem curr 6) (rem target 6)))) | |
#'user/left? | |
user> (left? 13 14) | |
true | |
user> (left? 14 14) | |
false | |
user> (left? 14 13) | |
false | |
user> (left? 1 6) | |
false | |
user> (left? 1 5) | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment