Created
March 18, 2016 21:32
-
-
Save hyotang666/56778eb33591cf3674f8 to your computer and use it in GitHub Desktop.
zundokokiyoshi!
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
(defun zundoko() | |
(do((bit(random 2)(random 2)) | |
(memory 0 (shift memory bit))) | |
((= #b11110 memory)(princ :kiyoshi!)) | |
(if(zerop bit) | |
(princ :doko) | |
(princ :zun)))) | |
(defun shift(memory bit) | |
(ldb(byte 5 0)(dpb bit(byte 1 0)(ash memory 1)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment