diff --git a/src/backend.js b/src/backend.js index 719bd0f..28f72c8 100644 --- a/src/backend.js +++ b/src/backend.js @@ -1,4 +1,4 @@ -import { Piece } from './logic' +const { Piece } = require('./logic') const BLACK = 0; const WHITE = 1; diff --git a/src/logic.js b/src/logic.js index cb52034..ee9637f 100644 --- a/src/logic.js +++ b/src/logic.js @@ -129,4 +129,4 @@ const textFromBoard = ({ state }) => { }).join(''); } -export { Piece, startingBoard, textFromBoard, PAWN, ROOK, KNIGHT, BISHOP, QUEEN, KING, EMPTY, BLACK, WHITE } +module.exports = { Piece, startingBoard, textFromBoard, PAWN, ROOK, KNIGHT, BISHOP, QUEEN, KING, EMPTY, BLACK, WHITE }