Rename fn names for better readability
This commit is contained in:
@@ -100,7 +100,7 @@ pub fn uci_position(position: &mut SplitWhitespace) -> Result<Game, String> {
|
||||
"fen" => {
|
||||
let fen_parts: Vec<&str> = position.take_while(|&part| part != "moves").collect();
|
||||
let fen = fen_parts.join(" ");
|
||||
Game::new_from_fen(&fen)?
|
||||
Game::from_fen(&fen)?
|
||||
}
|
||||
_ => return Err("Expected startpos or fen".to_string()),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user