Skip to content

Commit

Permalink
fix bug in analyze_game
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Oct 22, 2023
1 parent bf0ddfb commit c30726c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src-tauri/src/chess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,14 @@ pub async fn analyze_game(
let fen = Fen::from_position(chess.clone(), EnPassantMode::Legal);
let query = PositionQuery::exact_from_fen(&fen.to_string())?;

process
.set_options(EngineOptions {
threads: 4,
multipv: 1,
fen: fen.to_string(),
})
.await?;

process.go(&go_mode).await?;

let mut current_analysis = MoveAnalysis::default();
Expand Down

0 comments on commit c30726c

Please sign in to comment.