Skip to content

Jeannie's Scrabble - #38

Open
BJHunnicutt wants to merge 8 commits into
Ada-C6:masterfrom
BJHunnicutt:master
Open

Jeannie's Scrabble#38
BJHunnicutt wants to merge 8 commits into
Ada-C6:masterfrom
BJHunnicutt:master

Conversation

@BJHunnicutt

Copy link
Copy Markdown

Sorry, forgot to pull this earlier.

@CheezItMan CheezItMan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Jeannie, wow, this is an amazing piece of work. Just a few comments, but this is an amazing amount of work.

Comment thread board.js
[".", "=", ".", ".", ".", "*", ".", ".", ".", "*", ".", ".", ".", "=", "."],
["\#", ".", ".", "+", ".", ".", ".", "\#", ".", ".", ".", "+", ".", ".", "\#"]
];
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wow a board!

Comment thread scrabble.js

// 7-letter word bonus
if (len == 8) {score = score + 50;}
return score;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Where did len come from? It looks like a global variable initialized in the for loop. Better that's not used.

Also why are you comparing it with 8?

Comment thread scrabble.js
}
// the shortest of two words with the same score
else if (this.score(word) == this.score(highest) && word.length < highest.length) {
highest = word;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What about if the words are tied, but one is 7-letters long?

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants