Arcaster42 / rhymus

An open-source rhyming game project designed for new developers and first-time contributors.
https://rhymus-one.vercel.app
MIT License
12 stars 15 forks source link

created startGame function and wired up start button #50

Closed dhuang612 closed 4 years ago

dhuang612 commented 4 years ago

moved restart function call to the end of gameOver function.

created logic for start function

updated logic for restart function

set rhyme text content global before start to give information to end user

removed global shufflepuzzles call since it is now tied to start game.

dhuang612 commented 4 years ago

Additional work:

Noticed that the game was no longer ending after 4 incorrect guesses. updated logic for game to end after 4 incorrect guesses -tested and confirmed

moved restart call out of gameOver function so that the game didn't auto restart removed disabling the start button

moved instruction to end user into constructor so it's no longer a global variable. moved disabled restart button into same location