style: size pieces and fen and pgn importer

This commit is contained in:
shahdlala66
2026-04-17 23:53:42 +02:00
parent c60d00f9d2
commit d89c7e8c3f
4 changed files with 158 additions and 17 deletions
+8
View File
@@ -37,6 +37,14 @@ export class GameApiService {
return this.http.get<LegalMovesResponse>(`${this.apiBase}/api/board/game/${gameId}/moves`, { params });
}
importFen(fen: string): Observable<GameFull> {
return this.http.post<GameFull>(`${this.apiBase}/api/board/game/import/fen`, { fen });
}
importPgn(pgn: string): Observable<GameFull> {
return this.http.post<GameFull>(`${this.apiBase}/api/board/game/import/pgn`, { pgn });
}
streamGame(gameId: string): Observable<GameStreamEvent> {
return new Observable<GameStreamEvent>((observer) => {
const wsUrl = `${this.wsBase}/api/board/game/${gameId}/stream`;