@@ -26,7 +26,7 @@ use engine::src::zebra::EvalResult::{LOST_POSITION, WON_POSITION};
26
26
use engine:: src:: zebra:: GameMode :: { PRIVATE_GAME , PUBLIC_GAME } ;
27
27
use libc_wrapper:: { scanf, stdout, time, c_time, time_t} ;
28
28
use crate :: src:: display:: { dumpch, display_state, TO_SQUARE } ;
29
- use crate :: src:: error:: { FE , LibcFatalError } ;
29
+ use crate :: src:: error:: LibcFatalError ;
30
30
use crate :: src:: game:: { legacy_compute_move, global_setup, BasicBoardFileSource , LibcZebraOutput , LogFileHandler } ;
31
31
use crate :: src:: learn:: { init_learn, LibcLearner } ;
32
32
use crate :: src:: osfbook:: print_move_alternatives;
@@ -757,7 +757,7 @@ fn play_game(mut file_name: &str,
757
757
loop {
758
758
let state = next_state :: <
759
759
ZF , Source , BoardSrc , ComputeMoveLog , ComputeMoveOut , FE , Thor
760
- > ( & mut play_state, move_attempt. take ( ) ) ;
760
+ > ( & mut play_state, move_attempt. take ( ) , & LegacyThor ) ;
761
761
match state {
762
762
// TODO here in all these branches, we should ideally not need mutable reference to play_state
763
763
PlayGameState :: End => {
@@ -1107,15 +1107,15 @@ unsafe fn analyze_game(mut move_string: &str, g_state : &mut FullState) {
1107
1107
} else {
1108
1108
provided_move_count = ( move_string. len ( ) ) . wrapping_div ( 2 ) as i32 ;
1109
1109
if provided_move_count > 60 || ( move_string. len ( ) ) . wrapping_rem ( 2 ) == 1 {
1110
- FE :: invalid_move_string_provided ( ) ;
1110
+ LibcFatalError :: invalid_move_string_provided ( ) ;
1111
1111
}
1112
1112
i = 0 ;
1113
1113
let move_string = move_string. as_bytes ( ) ;
1114
1114
while i < provided_move_count {
1115
1115
col = ( * move_string. offset ( ( 2 * i) as isize ) as char ) . to_ascii_lowercase ( ) as u8 - b'a' + 1 ;
1116
1116
row = * move_string. offset ( ( 2 * i + 1 ) as isize ) - b'0' ;
1117
1117
if col < 1 || col > 8 || row < 1 || row > 8 {
1118
- FE :: unexpected_character_in_a_move_string ( ) ;
1118
+ LibcFatalError :: unexpected_character_in_a_move_string ( ) ;
1119
1119
}
1120
1120
provided_move[ i as usize ] = ( 10 * row + col) as i8 ;
1121
1121
i += 1
0 commit comments