@@ -26,7 +26,7 @@ use engine::src::zebra::EvalResult::{LOST_POSITION, WON_POSITION};
2626use engine:: src:: zebra:: GameMode :: { PRIVATE_GAME , PUBLIC_GAME } ;
2727use libc_wrapper:: { scanf, stdout, time, c_time, time_t} ;
2828use crate :: src:: display:: { dumpch, display_state, TO_SQUARE } ;
29- use crate :: src:: error:: { FE , LibcFatalError } ;
29+ use crate :: src:: error:: LibcFatalError ;
3030use crate :: src:: game:: { legacy_compute_move, global_setup, BasicBoardFileSource , LibcZebraOutput , LogFileHandler } ;
3131use crate :: src:: learn:: { init_learn, LibcLearner } ;
3232use crate :: src:: osfbook:: print_move_alternatives;
@@ -757,7 +757,7 @@ fn play_game(mut file_name: &str,
757757 loop {
758758 let state = next_state :: <
759759 ZF , Source , BoardSrc , ComputeMoveLog , ComputeMoveOut , FE , Thor
760- > ( & mut play_state, move_attempt. take ( ) ) ;
760+ > ( & mut play_state, move_attempt. take ( ) , & LegacyThor ) ;
761761 match state {
762762 // TODO here in all these branches, we should ideally not need mutable reference to play_state
763763 PlayGameState :: End => {
@@ -1107,15 +1107,15 @@ unsafe fn analyze_game(mut move_string: &str, g_state : &mut FullState) {
11071107 } else {
11081108 provided_move_count = ( move_string. len ( ) ) . wrapping_div ( 2 ) as i32 ;
11091109 if provided_move_count > 60 || ( move_string. len ( ) ) . wrapping_rem ( 2 ) == 1 {
1110- FE :: invalid_move_string_provided ( ) ;
1110+ LibcFatalError :: invalid_move_string_provided ( ) ;
11111111 }
11121112 i = 0 ;
11131113 let move_string = move_string. as_bytes ( ) ;
11141114 while i < provided_move_count {
11151115 col = ( * move_string. offset ( ( 2 * i) as isize ) as char ) . to_ascii_lowercase ( ) as u8 - b'a' + 1 ;
11161116 row = * move_string. offset ( ( 2 * i + 1 ) as isize ) - b'0' ;
11171117 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 ( ) ;
11191119 }
11201120 provided_move[ i as usize ] = ( 10 * row + col) as i8 ;
11211121 i += 1
0 commit comments