Skip to content

Conversation

@amirsaranBIH
Copy link

game.js

  • Created two new methods: pickRandomWord and toBlankWord because the constructor was doing a lot of things and it was getting stuffed.
  • In the newGuess method there is a new way of tracking if the guess is correct or not.
  • Simplified conditional logic in the newGuess method and removed unnecessary variable declaration.
  • In the incorrectGuess and correctGuess methods I refactored and simplified the logic and made it more readable.
  • Shortened the syntax for the getState method.
  • Other small changes.

server.js

  • Refactored the code and made it more readable and less messy.
  • Simplified the default username setting.

index.html

  • Commented out <img id="profile-pig-icon" src="assets/img/profilePig.svg" /> because there is no such file. It was throwing an error in the console.

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.

1 participant