MichaelPachec0 / nodejs-project-night

Project night for May 27 2022
MIT License
5 stars 12 forks source link

the header to display name and score #42

Closed thecornisians closed 2 years ago

thecornisians commented 2 years ago

Added a name and score input to display the player's name and their score.

thecornisians commented 2 years ago

As discussed in Discord, you would need to make some changes so that it includes the functionality of displaying the player's name and score.

It was mentioned in discord that Michael is working on the score functionality, so I will work on the name functionality (and leave out displaying the score) so it doesn't conflict with what Michael is doing.

jericashall commented 2 years ago

The score doesn't need a form, we'll be calculating the score for them, it's not an input we take from the player. We only need an input to take their name, a space to display the name, and a space to display the score. You can write the javascript to display the name from the input on the header. Michael/Ashley are working on keeping track of the score and once that's done something can be added to their function to update the score in the dom.

thecornisians commented 2 years ago

The score doesn't need a form, we'll be calculating the score for them, it's not an input we take from the player. We only need an input to take their name, a space to display the name, and a space to display the score. You can write the javascript to display the name from the input on the header. Michael/Ashley are working on keeping track of the score and once that's done something can be added to their function to update the score in the dom.

I was thinking of using the read-only attribute for the score section after I know how the score is going to be implemented. So even though it is a form/input field, users can type in there but then we can use it to display the score. But I like your suggestion too.