Skip to content

Commit ef84ad8

Browse files
rootroot
authored andcommitted
fix all files
1 parent ebaa4ce commit ef84ad8

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/games/BrainCacl.js

Lines changed: 1 addition & 1 deletion
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) => {

src/games/brainEven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import theMotor from "../index.js";
12

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

src/games/brainGCD.js

Lines changed: 1 addition & 1 deletion
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){

src/games/brainPGRESS.js

Lines changed: 1 addition & 1 deletion
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) {

src/games/brainPrime.js

Lines changed: 1 addition & 1 deletion
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;

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ const theMotor = (description, genRoundsData) =>{
2727
console.log(`Congratulations, ${userName}!`);
2828
};
2929

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

0 commit comments

Comments
 (0)