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

Guess who project #334

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Guess who project #334

wants to merge 10 commits into from

Conversation

isarobertini
Copy link

Copy link

@MikoZhu MikoZhu left a comment

Choose a reason for hiding this comment

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

Hi Isa,
Great job!
I played the game several times, and the logic and codes are all good. There are two minor issues on which I have provided additional clarification.

Best regards,
Huadan

code/script.js Outdated
let currentQuestion; //will be the current question object
let charactersInPlay; //will be an array of all people left in the game
let keep;
let guessCount = 0; //Initialize the counter
Copy link

Choose a reason for hiding this comment

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

I cannot see guessCount being used. So, it is better to remove this variable.

PLAY AGAIN
</button>
<audio src="./sounds/win.wav" id="win"></audio>
<audio src="./sounds/lose.wav" id="lose"></audio>
Copy link

Choose a reason for hiding this comment

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

The audio button should be removed. It isn't used in the Javascript document.

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