Skip to content

Commit

Permalink
Fix foundWinningSide() (#22)
Browse files Browse the repository at this point in the history
* Fix foundWinningSide()

* lint
  • Loading branch information
MakotoE authored Mar 25, 2023
1 parent ac0864d commit c8e37ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions evaluator/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::single_match)]

use anyhow::{Error, Result};
use clap::Parser;
use pgn_reader::BufferedReader;
Expand Down
2 changes: 1 addition & 1 deletion src/PointsSolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class PointsSolver {
return true;
}

return this.result.answer.evaluation * this.result.question.moves.one.evaluation > 0;
return this.result.answer.evaluation * this.result.question.moves.one.evaluation >= 0;
}

/**
Expand Down

0 comments on commit c8e37ec

Please sign in to comment.