diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-07-23 15:01:42 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-07-23 15:01:42 +0200 |
| commit | 8f0ffa8125f00af923098b30f390f6597b89d80d (patch) | |
| tree | e783ca2321426d54b49a031bc9e3ceda4f076375 /library/stdarch/examples | |
| parent | 67f73c75477338560fb78003149c11a9fa7d4820 (diff) | |
| download | rust-8f0ffa8125f00af923098b30f390f6597b89d80d.tar.gz rust-8f0ffa8125f00af923098b30f390f6597b89d80d.zip | |
Reformat code
Diffstat (limited to 'library/stdarch/examples')
| -rw-r--r-- | library/stdarch/examples/connect5.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/library/stdarch/examples/connect5.rs b/library/stdarch/examples/connect5.rs index 371b28552b3..f24657b1483 100644 --- a/library/stdarch/examples/connect5.rs +++ b/library/stdarch/examples/connect5.rs @@ -563,11 +563,7 @@ fn search(pos: &Pos, alpha: i32, beta: i32, depth: i32, _ply: i32) -> i32 { assert!(bs >= -EVAL_INF && bs <= EVAL_INF); //best move at the root node, best score elsewhere - if _ply == 0 { - bm - } else { - bs - } + if _ply == 0 { bm } else { bs } } /// Evaluation function: give different scores to different patterns after a fixed depth. |
