dandavies23 / smoothie-moves

A smoothie-themed memory game for 4-year-olds
2 stars 3 forks source link

Score board and scoring #24

Closed dandavies23 closed 3 years ago

dandavies23 commented 3 years ago

Warming to the idea of creating a scoreboard

10 points for every pair multiply that by the ammount of turns...

For younger players you get badges or levels rather than just points...

Could time be another factor?

dandavies23 commented 3 years ago

Scores now displayed at the top

dandavies23 commented 3 years ago

// Every second (investigate dynamic time: https://ralzohairi.medium.com/displaying-dynamic-elapsed-time-in-javascript) elapsedTimeIntervalRef = setInterval(() => { // Compute the elapsed time & display elapsedTimeText.innerText = timeAndDateHandling.getElapsedTime(startTime); //pass the actual record start time

    // Improvement: Can Stop elapsed time and resert when a maximum elapsed time
    //              has been reached.
//}, 1000); 
dandavies23 commented 3 years ago

Fixed dynamic timing with Akhsat. Re-opening because need to apply some basic styling - move moves down to the bottom