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

EC Hash Edits #80

Open
wants to merge 5 commits into
base: jc-hash-url
Choose a base branch
from
Open

EC Hash Edits #80

wants to merge 5 commits into from

Conversation

ericthewry
Copy link
Member

hey @chuj, @bmwwoo, @s-gogna

Here are some changes to the code organization of the branch. It cleans up some ambiguous code and uses some nice coffee tricks to make some of the logic clearer.

Let me know what you think.

Also, I didn't make all of the changes I think are necessary. This still needs work (e.g. the duplicated code that was in ShareGameService and is moved to HashingService). I think this is a step in the right direction though.

@@ -124,14 +125,18 @@ class MathSwipeController
generateBoard: (inputs, length, solutionPlacements) ->
DFS.setEquationsOnGrid length, inputs, AdjacentCellsCalculator, solutionPlacements

generateInputs: (inputLengths, inputs, goals) ->
generateInputs: (inputLengths, goals = [], inputs = []) ->
Copy link
Member

Choose a reason for hiding this comment

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

I'd rather have goals = [], inputs = [] as the first two lines of the method since you're only calling @generateInputs using the inputLengths

@bmwwoo bmwwoo force-pushed the ec-hash-edits branch 4 times, most recently from 5ab5d01 to 1990098 Compare November 17, 2015 10:33
@bmwwoo
Copy link
Member

bmwwoo commented Nov 17, 2015

LGTM 🐳 So merge this into #73 and then #73 can be merged into master/gh-pages.

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.

2 participants