We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9522304 commit 07bc220Copy full SHA for 07bc220
main.js
@@ -5,7 +5,6 @@ let speed = 5;//game speed
5
let characterToType = '';//character to type
6
const charactersList = 'abcdefghijklmnopqrstuvwxyz';//list of characters to type
7
let time = null;//last time key was pressed
8
-
9
console.log("Type the correct character to score a point");
10
11
function getRandomCharacter() {//function to generate random character
@@ -22,7 +21,7 @@ function setupInputListener() {
22
21
stdin.setRawMode(true);//use raw mode
23
stdin.resume();
24
stdin.setEncoding('utf8');
25
- stdin.on('data', handleInput);//use data
+ stdin.on('data', handleInput);//handle input data
26
}
27
28
function handleInput(key) {//when key is pressed
0 commit comments