Patch up some import/exports for the backend.

This commit is contained in:
Sage Vaillancourt 2022-10-17 16:15:32 -04:00
parent ed281b51f4
commit 5b18d3c0eb
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { Piece } from './logic' const { Piece } = require('./logic')
const BLACK = 0; const WHITE = 1; const BLACK = 0; const WHITE = 1;

View File

@ -129,4 +129,4 @@ const textFromBoard = ({ state }) => {
}).join(''); }).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 }