Created
November 4, 2009 15:38
-
-
Save asandroq/226135 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
(define (legal? move player board) | |
(and (eqv? (board-ref board move) *empty*) | |
(any? (lambda (dir) | |
(would-flip move player board dir)) | |
*all-directions*))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment