Skip to content

Commit

Permalink
use xiangqi data
Browse files Browse the repository at this point in the history
  • Loading branch information
iFwu committed Oct 7, 2024
1 parent 38a4b03 commit b43b0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chessEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export class ChessEngine {
this.engineInstance = await Pikafish({
locateFile: (file: string) => {
return file === 'pikafish.data'
? `${import.meta.env.BASE_URL}wasm/data/${file}`
: `${import.meta.env.BASE_URL}wasm/${file}`;
? 'https://xiangqiai.com/wasm/data/pikafish.data'
: `https://xiangqiai.com/wasm/single/${file}`;
},
});
await this.engineInstance.ready;
Expand Down

0 comments on commit b43b0ba

Please sign in to comment.