Skip to content

Commit bdba0a3

Browse files
rootroot
authored andcommitted
fix description in brainEven.js
1 parent ad5bada commit bdba0a3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/games/brainEven.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
import { theMotor } from '../../index.js';
3-
const getRandomNum = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
3+
const getRandomNum = (min = 1, max = 99) => Math.floor(Math.random() * (max - min + 1) + min);
44
const isEven = (number) => number % 2 === 0;
55

6-
const description = '"yes" if the number is even, otherwise answer "no".';
6+
const description = 'Answer "yes" if the number is even, otherwise answer "no".';
77
const genRounds = ()=>{
88
const minNum = 1;
99
const maxNum = 100;
@@ -16,5 +16,4 @@ const gameven = () =>{
1616
theMotor(description, genRounds)
1717
};
1818

19-
export {getRandomNum, gameven};
20-
19+
export {getRandomNum, gameven};

0 commit comments

Comments
 (0)