feat : add move classification icons

This commit is contained in:
GuillaumeSD
2024-03-07 00:28:32 +01:00
parent c93983fa1f
commit 99a90def9c
23 changed files with 170 additions and 122 deletions

View File

@@ -1,4 +1,4 @@
import { LineEval, MoveEval } from "@/types/eval";
import { LineEval, PositionEval } from "@/types/eval";
import { sortLines } from "./engine/helpers/parseResults";
import {
LichessError,
@@ -9,7 +9,7 @@ import {
export const getLichessEval = async (
fen: string,
multiPv = 1
): Promise<MoveEval> => {
): Promise<PositionEval> => {
try {
const res = await fetch(
`https://lichess.org/api/cloud-eval?fen=${fen}&multiPv=${multiPv}`