Skip to content

Cheetahs- Tasha C.#45

Open
tashach wants to merge 15 commits intoAdaGold:mainfrom
tashach:main
Open

Cheetahs- Tasha C.#45
tashach wants to merge 15 commits intoAdaGold:mainfrom
tashach:main

Conversation

@tashach
Copy link

@tashach tashach commented Dec 7, 2022

No description provided.

Copy link

@nancy-harris nancy-harris left a comment

Choose a reason for hiding this comment

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

Excellent job! Great job taking on the optional wave!

@@ -1,15 +1,138 @@
export const drawLetters = () => {
// Implement this method for wave 1
const letterPool = {

Choose a reason for hiding this comment

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

Excellent!


export const usesAvailableLetters = (input, lettersInHand) => {
// Implement this method for wave 2
const scoreChart = {

Choose a reason for hiding this comment

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

Excellent!

};
// ------------ Wave 05---------------------------
class Adagrams {
static drawLetters() {

Choose a reason for hiding this comment

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

Excellent!

return lettersInHand;
}

static usesAvailableLetters(input, lettersInHand) {

Choose a reason for hiding this comment

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

Excellent!

return true;
}

static scoreWord(word) {

Choose a reason for hiding this comment

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

Excellent!

return score;
}

static highestScoreFrom(words) {

Choose a reason for hiding this comment

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

Excellent!

Comment on lines +120 to +122
expectScores({
"": 0,
});

Choose a reason for hiding this comment

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

Excellent!

const correct = { word: "XXXX", score: Adagrams.scoreWord("XXXX") };

throw "Complete test by adding an assertion";
expect(Adagrams.highestScoreFrom(words)).toEqual(correct);

Choose a reason for hiding this comment

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

Excellent!

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