Patch up some import/exports for the backend.
This commit is contained in:
parent
ed281b51f4
commit
5b18d3c0eb
|
@ -1,4 +1,4 @@
|
|||
import { Piece } from './logic'
|
||||
const { Piece } = require('./logic')
|
||||
|
||||
|
||||
const BLACK = 0; const WHITE = 1;
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue