examples/react-web/src/ui/chess3d/game.js
function Load(pgn) {
  let chess = null;
  if (Chess.Chess) {
    chess = new Chess.Chess();
  } else {
    chess = new Chess();
  }
  chess.load_pgn(pgn);
  return chess;
}
function Load(pgn) {
  let chess = null;
  if (Chess.Chess) {
    chess = new Chess.Chess();
  } else {
    chess = new Chess();
  }
  chess.load_pgn(pgn);
  return chess;
}
function Load ( pgn ) { let chess = null ; if ( Chess . Chess ) { chess = new Chess . Chess ( ) ; } else { chess = new Chess ( ) ; } chess . load_pgn ( pgn ) ; return chess ; }
Helper to instantiate chess.js correctly on both browser and Node.
Helper to instantiate chess . js correctly on both browser and Node .