Created
June 18, 2011 22:09
-
-
Save rubychan/1033549 to your computer and use it in GitHub Desktop.
Club-Mate-Alphabet
This file contains hidden or 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
echo '(0..728).map{|i|(0..5).map{|j|("%06d"%i.to_s(3)*2)[j,6]}.min}.uniq' | ruby -e 'mate = (0...3**6).map { |i| "%06d" % i.to_s(3).to_i }.map { |s| (0..5).map { |j| s[j..-1] + s[0,j] }.min }.uniq; puts gets.chomp.each_byte.map { |b| mate[b] }.unshift(mate[128])' | |
122222 | |
002021 | |
002201 | |
002121 | |
002121 | |
010102 | |
002211 | |
010111 | |
002022 | |
002121 | |
022112 | |
021021 | |
022211 | |
112212 | |
112222 | |
021221 | |
112222 | |
002021 | |
002201 | |
002121 | |
002121 | |
002222 | |
002022 | |
002121 | |
022112 | |
021021 | |
022211 | |
112212 | |
112222 | |
021222 | |
112222 | |
002021 | |
001212 | |
002002 | |
002201 | |
010101 | |
021112 | |
001212 | |
002002 | |
021221 | |
002121 | |
111111 | |
022122 | |
020221 | |
022222 | |
002021 | |
002212 | |
002022 | |
002101 | |
002211 | |
002022 | |
012222 | |
021222 | |
002111 | |
010101 | |
020211 | |
121212 | |
002121 | |
022112 | |
021221 | |
022121 | |
121212 | |
002121 | |
111112 | |
022121 | |
021221 | |
022212 | |
0 = neu | |
1 = geknickt | |
2 = ab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment