@@ -15,19 +15,18 @@ function getSquare(x: number, y: number, flip: boolean): Square {
1515type BoardCell = ReturnType < Chess [ 'board' ] > [ number ] [ number ] ;
1616
1717const PIECE_IMAGES : Record < string , string > = {
18- // TODO: Move these all to PartBot!
19- wk : 'https://partprofessor.partman.dev/public/chess/WK.png' ,
20- wq : 'https://partprofessor.partman.dev/public/chess/WQ.png' ,
21- wb : 'https://partprofessor.partman.dev/public/chess/WB.png' ,
22- wn : 'https://partprofessor.partman.dev/public/chess/WN.png' ,
23- wr : 'https://partprofessor.partman.dev/public/chess/WR.png' ,
24- wp : 'https://partprofessor.partman.dev/public/chess/WP.png' ,
25- bk : 'https://partprofessor.partman.dev/public/chess/BK.png' ,
26- bq : 'https://partprofessor.partman.dev/public/chess/BQ.png' ,
27- bb : 'https://partprofessor.partman.dev/public/chess/BB.png' ,
28- bn : 'https://partprofessor.partman.dev/public/chess/BN.png' ,
29- br : 'https://partprofessor.partman.dev/public/chess/BR.png' ,
30- bp : 'https://partprofessor.partman.dev/public/chess/BP.png' ,
18+ wk : `${ process . env . WEB_URL } /static/chess/WK.png` ,
19+ wq : `${ process . env . WEB_URL } /static/chess/WQ.png` ,
20+ wb : `${ process . env . WEB_URL } /static/chess/WB.png` ,
21+ wn : `${ process . env . WEB_URL } /static/chess/WN.png` ,
22+ wr : `${ process . env . WEB_URL } /static/chess/WR.png` ,
23+ wp : `${ process . env . WEB_URL } /static/chess/WP.png` ,
24+ bk : `${ process . env . WEB_URL } /static/chess/BK.png` ,
25+ bq : `${ process . env . WEB_URL } /static/chess/BQ.png` ,
26+ bb : `${ process . env . WEB_URL } /static/chess/BB.png` ,
27+ bn : `${ process . env . WEB_URL } /static/chess/BN.png` ,
28+ br : `${ process . env . WEB_URL } /static/chess/BR.png` ,
29+ bp : `${ process . env . WEB_URL } /static/chess/BP.png` ,
3130} ;
3231
3332function adaptBoard ( board : BoardCell [ ] [ ] , flip : boolean ) : BoardCell [ ] [ ] {
0 commit comments