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

Isaac_Kamran_Guess_Who #340

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

Isaac_Kamran_Guess_Who #340

wants to merge 3 commits into from

Conversation

Isaackamran
Copy link

Finished all steps.

Copy link
Author

@Isaackamran Isaackamran left a comment

Choose a reason for hiding this comment

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

@klaudiaW0410
Copy link

The game works as required. The code is written clearly and can be understood. However, I would remove the excess comments which are like Technigo commands - because they are unnecessary (I am talking about the example of entering the code with filter ()). But overall the code is well written.
Good job!

Comment on lines 360 to +371
const checkMyGuess = (personToCheck) => {
if (personToCheck === secret["name"]) {
questions.style.display = "flex"
winOrLose.style.display = "flex"
board.style.display = "none"
winOrLoseText.innerHTML = "WOOHOO! YOU WON!"
} else {
questions.style.display = "flex"
winOrLose.style.display = "flex"
board.style.display = "none"
winOrLoseText.innerHTML = "OH NO! YOU LOST!"
}

Choose a reason for hiding this comment

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

This code looks nice. Can you tell me why you use flex? I'm curious because I have it done differently, but I'd like to know what you had in mind when writing this code :)

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