Skip to content

Commit 868a362

Browse files
rootroot
authored andcommitted
fix theMotor
1 parent a6f9495 commit 868a362

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/BrainCacl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TheMotor } from "../index.js";
1+
import { theMotor } from "../index.js";
22
import { getRandomNum } from "./brainEven.js";
33
const description = 'What is the result of the expression?';
44
const getResultOfExpression = (firstValue, operator, secondValue) => {
@@ -30,7 +30,7 @@ const genRounds = () => {
3030
};
3131

3232
const readyGameCalc = () => {
33-
TheMotor(description, genRounds);
33+
theMotor(description, genRounds);
3434
};
3535

3636
export default readyGameCalc;

src/brainEven.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { TheMotor } from '../index.js';
2+
import { theMotor } from '../index.js';
33
const getRandomNum = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
44

55

@@ -13,7 +13,7 @@ const genRounds = ()=>{
1313

1414
}
1515
const gameven = () =>{
16-
TheMotor(description, genRounds)
16+
theMotor(description, genRounds)
1717
};
1818

1919
export {getRandomNum, gameven};

src/brainGCD.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getRandomNum } from "./brainEven.js";
2-
import { TheMotor } from "../index.js";
2+
import { theMotor } from "../index.js";
33
const description = "Find the greatest common divisor of given numbers.";
44
const getNOD = (num1, num2)=>{
55
if (num1 === 0){
@@ -17,6 +17,6 @@ const genRounds = ()=>{
1717

1818
}
1919
const readygameGCD = ()=>{
20-
TheMotor(description, genRounds)
20+
theMotor(description, genRounds)
2121
};
2222
export default readygameGCD;

src/brainPGRESS.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getRandomNum } from "./brainEven.js";
2-
import { TheMotor } from "../index.js";
2+
import { theMotor } from "../index.js";
33
const genPRG = (length, firstElem, prgStep)=>{
44
const progression = [];
55
for (let i = 0; i < length; i += 1) {
@@ -22,6 +22,6 @@ const genRounds = () =>{
2222

2323
}
2424
const gamePRG = () =>{
25-
TheMotor(description, genRounds);
25+
theMotor(description, genRounds);
2626
}
2727
export default gamePRG;

src/brainPrime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getRandomNum } from "./brainEven.js";
2-
import { TheMotor } from "../index.js";
2+
import { theMotor } from "../index.js";
33
const isPrime = (num)=>{
44
if (num <= 1){
55
return false;
@@ -19,7 +19,7 @@ const genRounds = ()=>{
1919

2020
}
2121
const gamePrime = ()=>{
22-
TheMotor(description, genRounds);
22+
theMotor(description, genRounds);
2323
}
2424
export default gamePrime;
2525

src/index.js

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

3-
const TheMotor = (description, genRoundsData) =>{
4-
const maxRoundCount = 3;
3+
const theMotor = (description, genRoundsData) =>{
4+
const maxRoundCount = 3;
55

66
console.log('Welcome to the Brain Games!');
77
const userName = readlineSync.question('May I have your name? ');
@@ -27,4 +27,4 @@ const TheMotor = (description, genRoundsData) =>{
2727
console.log(`Congratulations, ${userName}!`);
2828
};
2929

30-
export {TheMotor};
30+
export {theMotor};

0 commit comments

Comments
 (0)