Created
December 3, 2011 22:57
-
-
Save burke/1428424 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
# -*-coding: utf-8-*- | |
module Enumerable def ‰&b;each &b;end end | |
∲,☃,☣,☺,✄,❤,⚠,❣=10,{},->*♧{☃[♧]=1},->*♒{☃[♒]},->*✍{☒=❤[*✍] | |
☺[*✍]?☒&2>☒&12:☒==3},->⚓,♫{✉=0;⚠[->¢,♎{¢|♎==0||☺[¢+⚓,♎+♫]&&✉+=1}];✉}, | |
->➨{(-1..1).‰{|¢|(-1..1).‰{|♎|➨[¢,♎]}}},->{∲.downto(-∲).‰{|☒|(-∲..∲).‰{|☐| | |
$><<(☺[☐,☒]??X:?.)};puts}};☀=->{☃=({}.tap{|త|☃.‰{|(☐,☒),_|⚠[->¢,♎{ | |
¢|♎==0||త[[☐+¢,☒+♎]]=✄[☐+¢,☒+♎]}]}})};☣[0,0];☣[1,0];☣[2,0];☣[2,1];☣[1,2] | |
loop{❣[];☀[]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment