~alip/jja

e4fa6b4f69f68f156846c816ca6bce220f0bde78 — Ali Polatel 11 months ago d4c5131
restore: lichess eval export -> brainlearn (take 3)
1 files changed, 6 insertions(+), 0 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +6 -0
@@ 3450,24 3450,30 @@ fn brainlearn_restore_json(filename: &str) -> Result<()> {
                let mov = match Uci::from_ascii(uci.as_bytes()) {
                    Ok(mov) => mov,
                    Err(error) => {
                        /*
                         * Too noisy
                        pb.println(tr!(
                            "Skipping invalid UCI `{}' on line {}: {}",
                            uci,
                            line_count,
                            error
                        ));
                        */
                        continue;
                    }
                };
                let mov = match mov.to_move(&pos) {
                    Ok(mov) => brainlearn::from_move(mov),
                    Err(error) => {
                        /*
                         * Too noisy
                        pb.println(tr!(
                            "Skipping illegal UCI `{}' on line {}: {}",
                            uci,
                            line_count,
                            error
                        ));
                        */
                        continue;
                    }
                };