conzett/canvasTetris — Issue #1: Pieces can intersect others when rotated
Author: conzett
Created: 2012-01-20 21:57:19+00:00
State: open

If a piece is boxed in on either side, and if after it's rotated it is wider than it was before, it will intersect one of the pieces on the other side.

Add a check to disallow rotating if the piece is obstructed on both sides, and the height is greater than the width.