Coderslang_Master
I've remade the code with your hints, also tried many new solutions but still i have the same issue.
constants.js
import terminalKit from 'terminal-kit';
export const term = terminalKit.terminal
functions.js
export const init = (term) => {
return "Welcome to the mining game!"
}
gameEngine.js
import {init} from './functions.js'
export const startMiningGame = (term) => {
init("Press 'G' to start!")
}
solution.js
import {startMiningGame} from './gameEngine.js'
import {term} from './constants.js'
import {init} from './functions.js'
startMiningGame(term(init(term)))
P.S. Also i've tried to submit this task with only startMiningGame(term)
, but had an issue term is not a function
.