Skip to content

Conversation

@scottfirestone
Copy link
Collaborator

@scottfirestone scottfirestone commented May 31, 2016

Previously, the game file included end-of-game functions that were embedded within the if statement another function. I extracted the function calls within the if statements to their own functions (endGameActions1P and endGameActions2P), to help with code readability.

I also added a couple semi-colons in levels.js for style.

The test suite passes after these changes.

closes #99

Please check the high-score logging for 1P games, as there all high score lines are filled after one game (worked like this prior to and after my branch refactoring). @adriennedomingus @erinnachen @rrgayhart
screen shot 2016-05-31 at 11 31 16 am

This PR will blow your mind.
mind-blown

End game actions are refactored to their own methods
Added some missing semi-colons to levels.js
@rrgayhart
Copy link

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactoring style

4 participants