CubePatterns first draft

master
root 2012-03-13 00:29:59 -04:00
parent f318b774ba
commit 45a41b32f2
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package DDG::Goodie::CubePatterns;
use DDG::Goodie;
triggers start => "cube";
zci is_cached => 1;
handle remainder => sub {
if ($_ eq "stripes")
{
return "F U F R L2 B D' R D2 L D' B R2 L F U F";
}
elsif ($_ eq "in a cube")
{
return "F L F U' R U F2 L2 U' L' B D' B' L2 U";
}
return;
};
1;