diff --git a/src/assets/strings.js b/src/assets/strings.js index 738a445..baf00b9 100644 --- a/src/assets/strings.js +++ b/src/assets/strings.js @@ -18,3 +18,14 @@ export default { startingInstructions: `Press 'p' to play, 'b' to build your own, or 'c' to contribute.`, unpause: `un(P)ause`, }; +const existingHighScore=number; + +const possibleSaying =["Wow! Same high score!", "Amazing, new high score!", "Maybe next time"] + + currentScore=(score)=>{ + if (score==existingHighScore){console.log(possibleSaying[0])} + if (score>existingHighScore){console.log(possibleSaying[1])} + if(score