Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Munching-squares/Clojure/munching-squares.clj
Normal file
10
Task/Munching-squares/Clojure/munching-squares.clj
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(let [n 16]
|
||||
(loop [i 0]
|
||||
(print "\033[0;0f\033[2J")
|
||||
(doseq [y (range n)]
|
||||
(doseq [x (range n)]
|
||||
(print (if (< (bit-xor x y) i) "█" " ")))
|
||||
(print "\n"))
|
||||
(flush)
|
||||
(Thread/sleep 150)
|
||||
(recur (mod (inc i) (inc n)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue