Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submit #24

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

submit #24

wants to merge 8 commits into from

Conversation

eating247
Copy link

No description provided.

}
}

var _squarePiece = function() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there's a bunch of duplication between the _piece functions. You might be able to pull out the data that defines the shape of each piece into a simple data structure, and then pass those settings into a more generic _piece function.

One tactic you could try for this refactoring would be to identify what changes between each function and pass those into the function as arguments.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this looks great! I can't seem to get the rotation to work though :O What key am I supposed to press?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants