Minesweeper - playing game after transpiling


#1

https://www.codecademy.com/courses/minesweeper/projects/terminal-minesweeper?program_content_id=7ff0afcf31a3ba2006ab3a99ebec1338&program_id=d8a267a92c1ab35ac170bcfafc17800f

I’ve ‘.Load game.js’ in the lib folder but when I try to play the game, I type
let game = new Game(5,5,5);

I get ReferenceError: Game is not defined

But my code looks intact, here is the code in the file:

import {Board} from './board';

class Game{
  constructor(numberOfRows,numberOfColumns,numberOfBombs){
    this._board = new Board(numberOfRows,numberOfColumns,numberOfBombs);
  }

  playMove(rowIndex,columnIndex){
    this._board.flipTile(rowIndex,columnIndex);
    if (this._board._playerBoard[rowIndex][columnIndex] === 'B') {
      console.log(`Game Over! Final Board:`);
      this._board.print();
    } else if (this._board._numberOfTiles === this._board._numberOfBombs){
      console.log(`You won!`);
    } else {
      console.log(`Current Board:`);
      this._board.print();
    }
  }
}

#2

Sorry please ignore this, realized I took it too literaterally and should have run .Load game.js instead of ‘.Load game.js’