Skip to content

Instantly share code, notes, and snippets.

@myndzi
Last active August 29, 2015 14:25
Show Gist options
  • Save myndzi/fdd804192aae3641cce4 to your computer and use it in GitHub Desktop.
Save myndzi/fdd804192aae3641cce4 to your computer and use it in GitHub Desktop.
a: {
def: [ ' X', ' ', ' ', 'XXX ',
' X', ' ', 'XX ', ' X ',
' XX', ' X ', 'X ', ' ',
' ', ' XXX', 'X ', ' ' ],
size: 4,
compiled: [
{ max: { x: 4, y: 4 },
minos: [ 13, 14, 25, 36 ],
shifts: [ [ 14, 25, 36 ], [ 13, 14 ], [ 13, 25, 36 ], [ 13, 36 ] ],
kicks: [ [ 1, -1 ], [ 1, -1 ], [ 1, -1 ], [ 1, -1 ] ] },
{ max: { x: 4, y: 2 },
minos: [ 1, 2, 3, 12 ],
shifts: [ [ 3, 12 ], [ 1, 2, 3 ], [ 1, 12 ], [ 2, 3, 12 ] ],
kicks: [ [ 1, -1 ], [ 1, -1 ], [ 1, -1 ], [ 1, -1 ] ] },
{ max: { x: 2, y: 3 },
minos: [ 0, 11, 22, 23 ],
shifts: [ [ 0, 11, 23 ], [ 0, 23 ], [ 0, 11, 22 ], [ 22, 23 ] ],
kicks: [ [ 1, -1 ], [ 1, -1 ], [ 1, -1 ], [ 1, -1 ] ] },
{ max: { x: 3, y: 4 },
minos: [ 24, 33, 34, 35 ],
shifts: [ [ 24, 35 ], [ 24, 33, 34 ], [ 24, 33 ], [ 33, 34, 35 ] ],
kicks: [ [ 1, -1 ], [ 1, -1 ], [ 1, -1 ], [ 1, -1 ] ] }
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment