Skip to content

Ocelots - Jennifer Dai - #14

Open
Jewelhae wants to merge 2 commits into
ada-ac2:mainfrom
Jewelhae:main
Open

Ocelots - Jennifer Dai#14
Jewelhae wants to merge 2 commits into
ada-ac2:mainfrom
Jewelhae:main

Conversation

@Jewelhae

Copy link
Copy Markdown

No description provided.

Comment thread src/adagrams.js Outdated
// Implement this method for wave 1
// find the random letters
let letters = [];
for(let i = 0; letters.length < 10; ++i){

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 wonder if it's possible that this is causing the long, or infinite loop, that's coming up in testing for me. Is there some chance that letters could never reach length 10?

Comment thread src/adagrams.js

export const drawLetters = () => {
// Implement this method for wave 1
const LETTER_POOL = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great debugging. How interesting that it was likely a variable scope issue!

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