File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub fn eval_no_legal_moves(board: &Board) -> f32 {
16
16
f32:: MAX
17
17
} ;
18
18
}
19
- pub fn new_eval_is_better ( maximise : bool , old : & Evaluation , new : & Evaluation ) -> bool {
19
+ pub ( crate ) fn new_eval_is_better ( maximise : bool , old : & Evaluation , new : & Evaluation ) -> bool {
20
20
new. eval . is_some ( )
21
21
&& ( old. eval . is_none ( )
22
22
|| maximise && new. eval . unwrap ( ) > old. eval . unwrap ( )
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ use crate::common::utils::Stats;
9
9
#[ derive( Debug , Copy , Clone ) ]
10
10
pub struct TranspositionEntry {
11
11
pub depth : u32 ,
12
- pub evaluation : Evaluation ,
12
+ pub ( crate ) evaluation : Evaluation ,
13
13
}
14
14
15
15
impl TranspositionEntry {
16
- pub fn new ( depth : u32 , evaluation : Evaluation ) -> Self {
16
+ pub ( crate ) fn new ( depth : u32 , evaluation : Evaluation ) -> Self {
17
17
TranspositionEntry { depth, evaluation }
18
18
}
19
19
}
20
20
21
- pub fn insert_in_transposition_table (
21
+ pub ( crate ) fn insert_in_transposition_table (
22
22
transposition_table : & mut HashMap < Board , TranspositionEntry > ,
23
23
board : & Board ,
24
24
depth : u32 ,
@@ -31,7 +31,7 @@ pub fn insert_in_transposition_table(
31
31
stats. transposition_table_entries += 1
32
32
}
33
33
34
- pub fn get_transposition_entry (
34
+ pub ( crate ) fn get_transposition_entry (
35
35
transposition_table : & HashMap < Board , TranspositionEntry > ,
36
36
stats : & mut Stats ,
37
37
board : & Board ,
You can’t perform that action at this time.
0 commit comments