Skip to content

Instantly share code, notes, and snippets.

@NakedMoleRatScientist
Created June 12, 2010 17:19
Show Gist options
  • Select an option

  • Save NakedMoleRatScientist/435902 to your computer and use it in GitHub Desktop.

Select an option

Save NakedMoleRatScientist/435902 to your computer and use it in GitHub Desktop.
m
function LShape()
{
this.length = 4;
this.color = #0011FF;
this.get_data = function(choice)
{
var list = new Array();
switch(choice)
{
case 0:
{
list.push([0,0]);
list.push([0,1]);
list.push([0,2]);
list.push([1,2]);
break;
}
case 1:
{
list.push([2,0]);
list.push([0,1]);
list.push([1,1]);
list.push([2,1]);
break;
}
case 2:
{
list.push([0,0]);
list.push([1,0]);
list.push([1,1]);
list.push([1,2]);
break;
}
case 3:
{
list.push([0,0]);
list.push([1,0]);
list.push([2,0]);
list.push([0,1]);
break;
}
}
return list;
}
if (asdf)
{
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment