File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,6 @@ impl Algorithm {
239
239
}
240
240
241
241
if utils:: module_enabled ( self . modules , modules:: TAPERED_INCREMENTAL_PESTO_PSQT ) {
242
- let material_each_side = utils:: material_each_side ( board) ;
243
242
fn calc_increment (
244
243
piece_type : Piece ,
245
244
location : usize ,
@@ -507,7 +506,7 @@ impl Algorithm {
507
506
if utils:: module_enabled ( self . modules , modules:: TAPERED_EVERY_PESTO_PSQT ) {
508
507
for i in 0 ..5 {
509
508
mg_tapered_pesto += Self :: calc_tapered_psqt_eval ( board, i, true ) ;
510
- eg_tapered_pesto += Self :: calc_tapered_psqt_eval ( board, 0 , false ) ;
509
+ eg_tapered_pesto += Self :: calc_tapered_psqt_eval ( board, i , false ) ;
511
510
}
512
511
tapered_pesto = ( ( material_each_side. 0 + material_each_side. 1 - 2 * piece_value ( Piece :: King ) ) as f32 * mg_tapered_pesto +
513
512
( 78 - ( material_each_side. 0 + material_each_side. 1 - 2 * piece_value ( Piece :: King ) ) ) as f32 * eg_tapered_pesto)
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ pub(crate) const PRINT_GAME: bool = false;
21
21
async fn main ( ) {
22
22
//ALPHA_BETA | ANALYZE | SEARCH_EXTENSIONS | SKIP_BAD_MOVES | SQUARE_CONTROL_METRIC | TRANSPOSITION_TABLE | NAIVE_PSQT | PAWN_STRUCTURE | TAPERED_EVERY_PESTO_PSQT | TAPERED_INCREMENTAL_PESTO_PSQT
23
23
//Put 0 for no modules.
24
- let modules1 = ALPHA_BETA | TAPERED_INCREMENTAL_PESTO_PSQT ;
24
+ let modules1 = ALPHA_BETA | TAPERED_EVERY_PESTO_PSQT ;
25
25
let modules2 = ALPHA_BETA ;
26
- let time_per_move1 = Duration :: from_micros ( 2000 ) ;
26
+ let time_per_move1 = Duration :: from_micros ( 4000 ) ;
27
27
let time_per_move2 = Duration :: from_micros ( 2000 ) ;
28
28
29
29
let competition = Competition :: new (
You can’t perform that action at this time.
0 commit comments