Skip to content

AC2 - Larissa Ault - #22

Open
ctlaultdel wants to merge 11 commits into
ada-ac2:mainfrom
ctlaultdel:main
Open

AC2 - Larissa Ault#22
ctlaultdel wants to merge 11 commits into
ada-ac2:mainfrom
ctlaultdel:main

Conversation

@ctlaultdel

Copy link
Copy Markdown

No description provided.

Comment thread src/modules/Alphabet.js
};
}

decreaseLetterCount(letter) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like this!

Comment thread src/adagrams.js
@@ -1,15 +1,71 @@
import { Alphabet } from "./modules/Alphabet.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.

Way to go, breaking your code in to separate files!

Comment thread src/adagrams.js
// collect index of letter
const index = handArr.indexOf(letter);
// remove letter from copy of letters in hand - prevent duplication
handArr.splice(index, 1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nice use of splice for the removal

Comment thread src/adagrams.js
export const usesAvailableLetters = (input, lettersInHand) => {
// Implement this method for wave 2
// convert input string to array
const inputArr = [...input.toUpperCase()];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cue gwen stefanni!

(nice use of spread syntax :) )

Comment thread src/modules/Alphabet.js
@@ -0,0 +1,47 @@
export class Alphabet {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Again, loving the modularization!

Comment thread src/modules/Hand.js
@@ -0,0 +1,16 @@
import { Alphabet } from "./Alphabet";

export class Hand extends Alphabet {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

OOP!

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