Skip to content

Commit e9ee61e

Browse files
committed
fixed 2-nd check notes
1 parent 1403375 commit e9ee61e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

bin/brain-even.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
22

3-
import runBrainEvenGame from '../src/games/even.js'
3+
import runEvenGame from '../src/games/even.js'
44

5-
runBrainEvenGame()
5+
runEvenGame()

src/cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import readlineSync from 'readline-sync'
22

3-
export default function runBrainGames() {
3+
const greetingBrainGames = () => {
44
console.log('Welcome to the Brain Games!')
55
const name = readlineSync.question('May I have your name? ')
66
console.log(`Hello, ${name}!`)
77
}
8+
9+
export default greetingBrainGames

src/games/gcd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ const getRound = () => {
2626
return [question, correctAnswer]
2727
}
2828

29-
export default function playGcd() {
30-
runEngine(rule, getRound)
31-
}
29+
const playGcd = () => runEngine(rule, getRound)
30+
31+
export default playGcd

src/utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
const getRandomNumber = (min, max) => {
1+
export const getRandomNumber = (min, max) => {
22
// NOSONAR
33
return Math.floor(Math.random() * (max - min + 1)) + min
44
}
5-
6-
export default getRandomNumber

0 commit comments

Comments
 (0)