[INFO] cloning repository https://github.com/EricGlover/chess_engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EricGlover/chess_engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEricGlover%2Fchess_engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEricGlover%2Fchess_engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b1c829dcb638f13cb0b76c71b3502f34f4c6d2ca [INFO] checking EricGlover/chess_engine against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEricGlover%2Fchess_engine" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/EricGlover/chess_engine on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/EricGlover/chess_engine [INFO] finished tweaking git repo https://github.com/EricGlover/chess_engine [INFO] tweaked toml for git repo https://github.com/EricGlover/chess_engine written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/EricGlover/chess_engine already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dialoguer v0.8.0 [INFO] [stderr] Downloaded string_morph v0.1.0 [INFO] [stderr] Downloaded unicode_types v0.2.0 [INFO] [stderr] Downloaded matrix_display v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7300a8dd1cef31d3893e0371c790ff6e154a760e6bd0d50e3267d01b1311250d [INFO] running `Command { std: "docker" "start" "-a" "7300a8dd1cef31d3893e0371c790ff6e154a760e6bd0d50e3267d01b1311250d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7300a8dd1cef31d3893e0371c790ff6e154a760e6bd0d50e3267d01b1311250d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7300a8dd1cef31d3893e0371c790ff6e154a760e6bd0d50e3267d01b1311250d", kill_on_drop: false }` [INFO] [stdout] 7300a8dd1cef31d3893e0371c790ff6e154a760e6bd0d50e3267d01b1311250d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 186c29a434899d1e36b98e07068922902c545090d845834b2297fb1f54285d96 [INFO] running `Command { std: "docker" "start" "-a" "186c29a434899d1e36b98e07068922902c545090d845834b2297fb1f54285d96", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.90 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking string_morph v0.1.0 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking unicode_types v0.2.0 [INFO] [stderr] Checking terminal_size v0.1.16 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking console v0.14.1 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking indicatif v0.15.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking dialoguer v0.8.0 [INFO] [stderr] Checking matrix_display v1.0.0 [INFO] [stderr] Checking chess_engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `ai` [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod ai; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `ai`, create file "src/ai.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `ai` [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod ai; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `ai`, create file "src/ai.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `board_stuff` [INFO] [stdout] --> src/board.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod board_stuff; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `board_stuff`, create file "src/board/board_stuff.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `board_stuff` [INFO] [stdout] --> src/board.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod board_stuff; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `board_stuff`, create file "src/board/board_stuff.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::ai::evaluator` [INFO] [stdout] --> src/game.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ai::evaluator::evaluate; [INFO] [stdout] | ^^^^^^^^^ could not find `evaluator` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::ai::ai` [INFO] [stdout] --> src/move_generator.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::ai::ai; [INFO] [stdout] | ^^^^^^^^^^^^^ no `ai` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::board::Color`, `crate::board::PieceType` [INFO] [stdout] --> src/board_console_printer.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::board::{Board, Color, PieceType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ no `PieceType` in `board` [INFO] [stdout] | | [INFO] [stdout] | no `Color` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::board::Coordinate`, `crate::board::PieceType` [INFO] [stdout] --> src/chess_notation.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::board::{Board, Coordinate, PieceType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ no `PieceType` in `board` [INFO] [stdout] | | [INFO] [stdout] | no `Coordinate` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::board::Coordinate` [INFO] [stdout] --> src/game.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::board::{Board, Coordinate}; [INFO] [stdout] | ^^^^^^^^^^ no `Coordinate` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::board::Coordinate` [INFO] [stdout] --> src/move_generator/path.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::board::Coordinate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `Coordinate` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::board::Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::board::Coordinate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `Coordinate` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::ai::evaluator` [INFO] [stdout] --> src/game.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ai::evaluator::evaluate; [INFO] [stdout] | ^^^^^^^^^ could not find `evaluator` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::board::Color`, `crate::board::PieceType` [INFO] [stdout] --> src/board_console_printer.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::board::{Board, Color, PieceType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ no `PieceType` in `board` [INFO] [stdout] | | [INFO] [stdout] | no `Color` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::board::Coordinate`, `crate::board::PieceType` [INFO] [stdout] --> src/chess_notation.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::board::{Board, Coordinate, PieceType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ no `PieceType` in `board` [INFO] [stdout] | | [INFO] [stdout] | no `Coordinate` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::board::Coordinate` [INFO] [stdout] --> src/game.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::board::{Board, Coordinate}; [INFO] [stdout] | ^^^^^^^^^^ no `Coordinate` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::board::Coordinate` [INFO] [stdout] --> src/move_generator/path.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::board::Coordinate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `Coordinate` in `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/board.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let at = Coordinate::new(1, 1); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | let pieces = board.get_pieces(Color::Black, PieceType::King); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:27:53 [INFO] [stdout] | [INFO] [stdout] 27 | let pieces = board.get_pieces(Color::Black, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | let black_king = Piece::new(Color::Black, PieceType::King, Some(Coordinate::new(5, 8))); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:30:51 [INFO] [stdout] | [INFO] [stdout] 30 | let black_king = Piece::new(Color::Black, PieceType::King, Some(Coordinate::new(5, 8))); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/board.rs:30:73 [INFO] [stdout] | [INFO] [stdout] 30 | let black_king = Piece::new(Color::Black, PieceType::King, Some(Coordinate::new(5, 8))); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | assert!(board.is_in_check(Color::Black)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 45 | assert!(!board.is_in_check(Color::White)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:47:36 [INFO] [stdout] | [INFO] [stdout] 47 | assert!(!board.is_in_check(Color::Black)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 48 | assert!(board.is_in_check(Color::White)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:141:29 [INFO] [stdout] | [INFO] [stdout] 141 | player_to_move: Color::White, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | Color::White => self.white_can_castle_queen_side, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | Color::Black => self.black_can_castle_queen_side, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | Color::White => self.white_can_castle_king_side, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | Color::Black => self.black_can_castle_king_side, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:239:59 [INFO] [stdout] | [INFO] [stdout] 239 | if enemy_piece.is_none() && m.piece.piece_type != PieceType::Pawn { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:260:61 [INFO] [stdout] | [INFO] [stdout] 260 | if m.promoted_to.is_some() && m.piece.piece_type == PieceType::Pawn { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | Color::White => { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | Color::Black => { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:288:29 [INFO] [stdout] | [INFO] [stdout] 288 | if m.piece.color == Color::Black { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:141:29 [INFO] [stdout] | [INFO] [stdout] 141 | player_to_move: Color::White, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | Color::White => self.white_can_castle_queen_side, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | Color::Black => self.black_can_castle_queen_side, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:343:37 [INFO] [stdout] | [INFO] [stdout] 343 | piece.piece_type == PieceType::King [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | Color::White => self.white_can_castle_king_side, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | Color::Black => self.black_can_castle_king_side, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:239:59 [INFO] [stdout] | [INFO] [stdout] 239 | if enemy_piece.is_none() && m.piece.piece_type != PieceType::Pawn { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:260:61 [INFO] [stdout] | [INFO] [stdout] 260 | if m.promoted_to.is_some() && m.piece.piece_type == PieceType::Pawn { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | Color::White => { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | Color::Black => { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:288:29 [INFO] [stdout] | [INFO] [stdout] 288 | if m.piece.color == Color::Black { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:426:49 [INFO] [stdout] | [INFO] [stdout] 426 | let mut pieces = self.get_pieces(color, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:466:25 [INFO] [stdout] | [INFO] [stdout] 466 | Color::White [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:468:25 [INFO] [stdout] | [INFO] [stdout] 468 | Color::Black [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:473:25 [INFO] [stdout] | [INFO] [stdout] 473 | Color::Black [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:475:25 [INFO] [stdout] | [INFO] [stdout] 475 | Color::White [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/board.rs:479:33 [INFO] [stdout] | [INFO] [stdout] 479 | coordinate: Coordinate::new(x, y), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:343:37 [INFO] [stdout] | [INFO] [stdout] 343 | piece.piece_type == PieceType::King [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/board.rs:426:49 [INFO] [stdout] | [INFO] [stdout] 426 | let mut pieces = self.get_pieces(color, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/chess_notation.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | let t = PieceType::from(first.to_lowercase().to_string().as_str()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/chess_notation.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | PieceType::Pawn [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/chess_notation.rs:311:14 [INFO] [stdout] | [INFO] [stdout] 311 | let to = Coordinate::from(s.as_str()); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:466:25 [INFO] [stdout] | [INFO] [stdout] 466 | Color::White [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:468:25 [INFO] [stdout] | [INFO] [stdout] 468 | Color::Black [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:473:25 [INFO] [stdout] | [INFO] [stdout] 473 | Color::Black [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/board.rs:475:25 [INFO] [stdout] | [INFO] [stdout] 475 | Color::White [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/chess_notation.rs:337:38 [INFO] [stdout] | [INFO] [stdout] 337 | let m = read_move(s, &board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/chess_notation.rs:338:40 [INFO] [stdout] | [INFO] [stdout] 338 | let m2 = read_move(s2, &board, Color::White).unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/board.rs:479:33 [INFO] [stdout] | [INFO] [stdout] 479 | coordinate: Coordinate::new(x, y), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/chess_notation.rs:339:18 [INFO] [stdout] | [INFO] [stdout] 339 | let a1 = Coordinate::from("a1"); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/chess_notation.rs:340:18 [INFO] [stdout] | [INFO] [stdout] 340 | let a2 = Coordinate::from("a2"); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/chess_notation.rs:341:18 [INFO] [stdout] | [INFO] [stdout] 341 | let a4 = Coordinate::from("a4"); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/chess_notation.rs:342:31 [INFO] [stdout] | [INFO] [stdout] 342 | let rook = Piece::new(Color::White, PieceType::Rook, Some(a1.clone())); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/chess_notation.rs:342:45 [INFO] [stdout] | [INFO] [stdout] 342 | let rook = Piece::new(Color::White, PieceType::Rook, Some(a1.clone())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/chess_notation.rs:343:31 [INFO] [stdout] | [INFO] [stdout] 343 | let pawn = Piece::new(Color::White, PieceType::Pawn, Some(a2.clone())); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/chess_notation.rs:343:45 [INFO] [stdout] | [INFO] [stdout] 343 | let pawn = Piece::new(Color::White, PieceType::Pawn, Some(a2.clone())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | PieceType::King => "k", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | PieceType::Queen => "q", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | PieceType::Bishop => "b", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | PieceType::Knight => "n", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | PieceType::Rook => "r", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | PieceType::Pawn => "p", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | if piece.color == Color::White { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:95:35 [INFO] [stdout] | [INFO] [stdout] 95 | if board.can_castle_king_side(Color::White) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:98:36 [INFO] [stdout] | [INFO] [stdout] 98 | if board.can_castle_queen_side(Color::White) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:101:35 [INFO] [stdout] | [INFO] [stdout] 101 | if board.can_castle_king_side(Color::Black) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:104:36 [INFO] [stdout] | [INFO] [stdout] 104 | if board.can_castle_queen_side(Color::Black) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | Color::Black [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | Color::White [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let piece_type = PieceType::from(char.to_lowercase().as_str()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/chess_notation.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | let t = PieceType::from(first.to_lowercase().to_string().as_str()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/chess_notation.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | PieceType::Pawn [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/chess_notation.rs:311:14 [INFO] [stdout] | [INFO] [stdout] 311 | let to = Coordinate::from(s.as_str()); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | PieceType::King => "k", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | PieceType::Queen => "q", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | PieceType::Bishop => "b", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | PieceType::Knight => "n", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | PieceType::Rook => "r", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | PieceType::Pawn => "p", [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | if piece.color == Color::White { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:95:35 [INFO] [stdout] | [INFO] [stdout] 95 | if board.can_castle_king_side(Color::White) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:98:36 [INFO] [stdout] | [INFO] [stdout] 98 | if board.can_castle_queen_side(Color::White) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:101:35 [INFO] [stdout] | [INFO] [stdout] 101 | if board.can_castle_king_side(Color::Black) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:104:36 [INFO] [stdout] | [INFO] [stdout] 104 | if board.can_castle_queen_side(Color::Black) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | Color::Black [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | Color::White [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | let coordinate = Coordinate::new(x, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | Color::White [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | Color::Black [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let piece_type = PieceType::from(char.to_lowercase().as_str()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:178:14 [INFO] [stdout] | [INFO] [stdout] 178 | Some(Coordinate::from(parts[3])) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:225:49 [INFO] [stdout] | [INFO] [stdout] 225 | let white_pieces = board.get_all_pieces(Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | let black_pieces = board.get_all_pieces(Color::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | PieceType::King => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | let coordinate = Coordinate::new(x, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | Color::White [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/fen_reader.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | Color::Black [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:234:53 [INFO] [stdout] | [INFO] [stdout] 234 | assert_eq!(piece.at().unwrap(), Coordinate::new(5, 1)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | PieceType::Queen => {} [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | PieceType::Bishop => {} [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | PieceType::Knight => {} [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | PieceType::Rook => {} [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:178:14 [INFO] [stdout] | [INFO] [stdout] 178 | Some(Coordinate::from(parts[3])) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/fen_reader.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | PieceType::Pawn => {} [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:257:37 [INFO] [stdout] | [INFO] [stdout] 257 | assert_eq!(board.has_piece(&Coordinate::new(1, 8)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ai` in `ai` [INFO] [stdout] --> src/game.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | ai: ai::ai::new(Color::Black), [INFO] [stdout] | ^^ could not find `ai` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/game.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | ai: ai::ai::new(Color::Black), [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:258:37 [INFO] [stdout] | [INFO] [stdout] 258 | assert_eq!(board.has_piece(&Coordinate::new(2, 8)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ai` in `ai` [INFO] [stdout] --> src/game.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | ai2: ai::ai::new(Color::White), [INFO] [stdout] | ^^ could not find `ai` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/game.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | ai2: ai::ai::new(Color::White), [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/game.rs:113:78 [INFO] [stdout] | [INFO] [stdout] 113 | let m = chess_notation::read_move(command.as_str(), &self.board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `evaluator` in `ai` [INFO] [stdout] --> src/game.rs:127:28 [INFO] [stdout] | [INFO] [stdout] 127 | let eval = ai::evaluator::evaluate(&self.board); [INFO] [stdout] | ^^^^^^^^^ could not find `evaluator` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:259:37 [INFO] [stdout] | [INFO] [stdout] 259 | assert_eq!(board.has_piece(&Coordinate::new(3, 8)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `evaluator` in `ai` [INFO] [stdout] --> src/game.rs:143:28 [INFO] [stdout] | [INFO] [stdout] 143 | let eval = ai::evaluator::evaluate(&self.board); [INFO] [stdout] | ^^^^^^^^^ could not find `evaluator` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | PieceType::King => gen_king_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | PieceType::Queen => gen_queen_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | PieceType::Bishop => gen_bishop_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | PieceType::Knight => gen_knight_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | PieceType::Rook => gen_rook_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | PieceType::Pawn => gen_pawn_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | PieceType::King => gen_king_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | PieceType::Queen => gen_queen_vector(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | PieceType::Bishop => gen_bishop_vector(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | PieceType::Knight => gen_knight_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | PieceType::Rook => gen_rook_vector(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | PieceType::Pawn => gen_pawn_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:260:37 [INFO] [stdout] | [INFO] [stdout] 260 | assert_eq!(board.has_piece(&Coordinate::new(4, 8)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:261:37 [INFO] [stdout] | [INFO] [stdout] 261 | assert_eq!(board.has_piece(&Coordinate::new(5, 8)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:191:23 [INFO] [stdout] | [INFO] [stdout] 191 | if piece.color == Color::White && board.can_castle_queen_side(piece.color) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | Coordinate::new(2, 1), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | Coordinate::new(3, 1), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:262:37 [INFO] [stdout] | [INFO] [stdout] 262 | assert_eq!(board.has_piece(&Coordinate::new(6, 8)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | Coordinate::new(4, 1), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:199:48 [INFO] [stdout] | [INFO] [stdout] 199 | moves.push(Move::castle_queen_side(Color::White)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:202:23 [INFO] [stdout] | [INFO] [stdout] 202 | if piece.color == Color::White && board.can_castle_king_side(piece.color) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:204:35 [INFO] [stdout] | [INFO] [stdout] 204 | let pass_through_spots = [Coordinate::new(6, 1), Coordinate::new(7, 1)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:263:37 [INFO] [stdout] | [INFO] [stdout] 263 | assert_eq!(board.has_piece(&Coordinate::new(7, 8)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:204:58 [INFO] [stdout] | [INFO] [stdout] 204 | let pass_through_spots = [Coordinate::new(6, 1), Coordinate::new(7, 1)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:206:47 [INFO] [stdout] | [INFO] [stdout] 206 | moves.push(Move::castle_king_side(Color::White)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:209:23 [INFO] [stdout] | [INFO] [stdout] 209 | if piece.color == Color::Black && board.can_castle_queen_side(piece.color) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | Coordinate::new(2, 8), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | Coordinate::new(3, 8), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:264:37 [INFO] [stdout] | [INFO] [stdout] 264 | assert_eq!(board.has_piece(&Coordinate::new(8, 8)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:267:39 [INFO] [stdout] | [INFO] [stdout] 267 | assert_eq!(has_piece(&board, &Coordinate::new(1, 7)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | Coordinate::new(4, 8), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:217:48 [INFO] [stdout] | [INFO] [stdout] 217 | moves.push(Move::castle_queen_side(Color::Black)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:220:23 [INFO] [stdout] | [INFO] [stdout] 220 | if piece.color == Color::Black && board.can_castle_king_side(piece.color) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:222:35 [INFO] [stdout] | [INFO] [stdout] 222 | let pass_through_spots = [Coordinate::new(6, 8), Coordinate::new(7, 8)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:268:39 [INFO] [stdout] | [INFO] [stdout] 268 | assert_eq!(has_piece(&board, &Coordinate::new(2, 7)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:222:58 [INFO] [stdout] | [INFO] [stdout] 222 | let pass_through_spots = [Coordinate::new(6, 8), Coordinate::new(7, 8)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:224:47 [INFO] [stdout] | [INFO] [stdout] 224 | moves.push(Move::castle_king_side(Color::Black)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:341:43 [INFO] [stdout] | [INFO] [stdout] 341 | let direction: i8 = if piece.color == Color::White { 1 } else { -1 }; [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:351:24 [INFO] [stdout] | [INFO] [stdout] 351 | if (piece.color == Color::White && to.y() == HIGH_Y) [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:352:28 [INFO] [stdout] | [INFO] [stdout] 352 | || (piece.color == Color::Black && to.y() == LOW_Y) [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:357:17 [INFO] [stdout] | [INFO] [stdout] 357 | PieceType::Rook, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:358:17 [INFO] [stdout] | [INFO] [stdout] 358 | PieceType::Queen, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | PieceType::Bishop, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:360:17 [INFO] [stdout] | [INFO] [stdout] 360 | PieceType::Knight, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:269:39 [INFO] [stdout] | [INFO] [stdout] 269 | assert_eq!(has_piece(&board, &Coordinate::new(3, 7)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:379:24 [INFO] [stdout] | [INFO] [stdout] 379 | if (piece.color == Color::White && from.y() == 2) [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:380:28 [INFO] [stdout] | [INFO] [stdout] 380 | || (piece.color == Color::Black && from.y() == 7) [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:270:39 [INFO] [stdout] | [INFO] [stdout] 270 | assert_eq!(has_piece(&board, &Coordinate::new(4, 7)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:271:39 [INFO] [stdout] | [INFO] [stdout] 271 | assert_eq!(has_piece(&board, &Coordinate::new(5, 7)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:272:39 [INFO] [stdout] | [INFO] [stdout] 272 | assert_eq!(has_piece(&board, &Coordinate::new(6, 7)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:434:9 [INFO] [stdout] | [INFO] [stdout] 434 | Color::White => Color::Black, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:434:25 [INFO] [stdout] | [INFO] [stdout] 434 | Color::White => Color::Black, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | Color::Black => Color::White, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:435:25 [INFO] [stdout] | [INFO] [stdout] 435 | Color::Black => Color::White, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:273:39 [INFO] [stdout] | [INFO] [stdout] 273 | assert_eq!(has_piece(&board, &Coordinate::new(7, 7)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:274:39 [INFO] [stdout] | [INFO] [stdout] 274 | assert_eq!(has_piece(&board, &Coordinate::new(8, 7)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:276:39 [INFO] [stdout] | [INFO] [stdout] 276 | assert_eq!(has_piece(&board, &Coordinate::new(1, 6)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:277:39 [INFO] [stdout] | [INFO] [stdout] 277 | assert_eq!(has_piece(&board, &Coordinate::new(2, 6)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:278:39 [INFO] [stdout] | [INFO] [stdout] 278 | assert_eq!(has_piece(&board, &Coordinate::new(3, 6)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:279:39 [INFO] [stdout] | [INFO] [stdout] 279 | assert_eq!(has_piece(&board, &Coordinate::new(4, 6)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:280:39 [INFO] [stdout] | [INFO] [stdout] 280 | assert_eq!(has_piece(&board, &Coordinate::new(5, 6)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:281:39 [INFO] [stdout] | [INFO] [stdout] 281 | assert_eq!(has_piece(&board, &Coordinate::new(6, 6)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:282:39 [INFO] [stdout] | [INFO] [stdout] 282 | assert_eq!(has_piece(&board, &Coordinate::new(7, 6)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:283:39 [INFO] [stdout] | [INFO] [stdout] 283 | assert_eq!(has_piece(&board, &Coordinate::new(8, 6)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:285:39 [INFO] [stdout] | [INFO] [stdout] 285 | assert_eq!(has_piece(&board, &Coordinate::new(1, 5)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:286:39 [INFO] [stdout] | [INFO] [stdout] 286 | assert_eq!(has_piece(&board, &Coordinate::new(2, 5)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:298:68 [INFO] [stdout] | [INFO] [stdout] 298 | let (from, to) = Move::king_side_castle_coordinates(color, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:299:78 [INFO] [stdout] | [INFO] [stdout] 299 | let (rook_from, rook_to) = Move::king_side_castle_coordinates(color, PieceType::Rook); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:287:39 [INFO] [stdout] | [INFO] [stdout] 287 | assert_eq!(has_piece(&board, &Coordinate::new(3, 5)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:301:38 [INFO] [stdout] | [INFO] [stdout] 301 | piece: Piece::new(color, PieceType::King, Some(from.clone())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:307:42 [INFO] [stdout] | [INFO] [stdout] 307 | rook: Some(Piece::new(color, PieceType::Rook, Some(rook_from.clone()))), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:288:39 [INFO] [stdout] | [INFO] [stdout] 288 | assert_eq!(has_piece(&board, &Coordinate::new(4, 5)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:315:69 [INFO] [stdout] | [INFO] [stdout] 315 | let (from, to) = Move::queen_side_castle_coordinates(color, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:316:79 [INFO] [stdout] | [INFO] [stdout] 316 | let (rook_from, rook_to) = Move::queen_side_castle_coordinates(color, PieceType::Rook); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:318:38 [INFO] [stdout] | [INFO] [stdout] 318 | piece: Piece::new(color, PieceType::King, Some(from.clone())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:324:42 [INFO] [stdout] | [INFO] [stdout] 324 | rook: Some(Piece::new(color, PieceType::Rook, Some(rook_from.clone()))), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:289:39 [INFO] [stdout] | [INFO] [stdout] 289 | assert_eq!(has_piece(&board, &Coordinate::new(5, 5)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:341:33 [INFO] [stdout] | [INFO] [stdout] 341 | let y: u8 = if color == Color::White { 1 } else { 8 }; [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:290:39 [INFO] [stdout] | [INFO] [stdout] 290 | assert_eq!(has_piece(&board, &Coordinate::new(6, 5)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:291:39 [INFO] [stdout] | [INFO] [stdout] 291 | assert_eq!(has_piece(&board, &Coordinate::new(7, 5)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | PieceType::King => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:292:39 [INFO] [stdout] | [INFO] [stdout] 292 | assert_eq!(has_piece(&board, &Coordinate::new(8, 5)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:344:28 [INFO] [stdout] | [INFO] [stdout] 344 | let from = Coordinate::new(5, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:345:26 [INFO] [stdout] | [INFO] [stdout] 345 | let to = Coordinate::new(7, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:348:13 [INFO] [stdout] | [INFO] [stdout] 348 | PieceType::Rook => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:349:28 [INFO] [stdout] | [INFO] [stdout] 349 | let from = Coordinate::new(8, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:295:39 [INFO] [stdout] | [INFO] [stdout] 295 | assert_eq!(has_piece(&board, &Coordinate::new(1, 4)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:350:26 [INFO] [stdout] | [INFO] [stdout] 350 | let to = Coordinate::new(6, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:296:39 [INFO] [stdout] | [INFO] [stdout] 296 | assert_eq!(has_piece(&board, &Coordinate::new(2, 4)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:297:39 [INFO] [stdout] | [INFO] [stdout] 297 | assert_eq!(has_piece(&board, &Coordinate::new(3, 4)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:298:39 [INFO] [stdout] | [INFO] [stdout] 298 | assert_eq!(has_piece(&board, &Coordinate::new(4, 4)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:360:33 [INFO] [stdout] | [INFO] [stdout] 360 | let y: u8 = if color == Color::White { 1 } else { 8 }; [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:362:13 [INFO] [stdout] | [INFO] [stdout] 362 | PieceType::King => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:299:39 [INFO] [stdout] | [INFO] [stdout] 299 | assert_eq!(has_piece(&board, &Coordinate::new(5, 4)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:363:28 [INFO] [stdout] | [INFO] [stdout] 363 | let from = Coordinate::new(5, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:364:26 [INFO] [stdout] | [INFO] [stdout] 364 | let to = Coordinate::new(3, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:300:39 [INFO] [stdout] | [INFO] [stdout] 300 | assert_eq!(has_piece(&board, &Coordinate::new(6, 4)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:301:39 [INFO] [stdout] | [INFO] [stdout] 301 | assert_eq!(has_piece(&board, &Coordinate::new(7, 4)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:367:13 [INFO] [stdout] | [INFO] [stdout] 367 | PieceType::Rook => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:368:28 [INFO] [stdout] | [INFO] [stdout] 368 | let from = Coordinate::new(1, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:302:39 [INFO] [stdout] | [INFO] [stdout] 302 | assert_eq!(has_piece(&board, &Coordinate::new(8, 4)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:369:26 [INFO] [stdout] | [INFO] [stdout] 369 | let to = Coordinate::new(4, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:304:39 [INFO] [stdout] | [INFO] [stdout] 304 | assert_eq!(has_piece(&board, &Coordinate::new(1, 3)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:305:39 [INFO] [stdout] | [INFO] [stdout] 305 | assert_eq!(has_piece(&board, &Coordinate::new(2, 3)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:306:39 [INFO] [stdout] | [INFO] [stdout] 306 | assert_eq!(has_piece(&board, &Coordinate::new(3, 3)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:307:39 [INFO] [stdout] | [INFO] [stdout] 307 | assert_eq!(has_piece(&board, &Coordinate::new(4, 3)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:428:60 [INFO] [stdout] | [INFO] [stdout] 428 | let mut king_pieces = board.get_pieces(defender_color, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:444:17 [INFO] [stdout] | [INFO] [stdout] 444 | if t == PieceType::Queen || t == PieceType::Bishop || t == PieceType::Rook { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:444:42 [INFO] [stdout] | [INFO] [stdout] 444 | if t == PieceType::Queen || t == PieceType::Bishop || t == PieceType::Rook { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:444:68 [INFO] [stdout] | [INFO] [stdout] 444 | if t == PieceType::Queen || t == PieceType::Bishop || t == PieceType::Rook { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:308:39 [INFO] [stdout] | [INFO] [stdout] 308 | assert_eq!(has_piece(&board, &Coordinate::new(5, 3)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:497:61 [INFO] [stdout] | [INFO] [stdout] 497 | let king_pieces = board.get_pieces(color_being_checked, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:309:39 [INFO] [stdout] | [INFO] [stdout] 309 | assert_eq!(has_piece(&board, &Coordinate::new(6, 3)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:523:34 [INFO] [stdout] | [INFO] [stdout] 523 | if m.piece.piece_type != PieceType::King { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:540:70 [INFO] [stdout] | [INFO] [stdout] 540 | || (is_interposing_move && m.piece.piece_type != PieceType::King) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:310:39 [INFO] [stdout] | [INFO] [stdout] 310 | assert_eq!(has_piece(&board, &Coordinate::new(7, 3)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:311:39 [INFO] [stdout] | [INFO] [stdout] 311 | assert_eq!(has_piece(&board, &Coordinate::new(8, 3)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:313:39 [INFO] [stdout] | [INFO] [stdout] 313 | assert_eq!(has_piece(&board, &Coordinate::new(1, 2)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/board.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | pub piece_type: PieceType, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | pub color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Piece { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 68 | at: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | at: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn new(color: Color, piece_type: PieceType, at: Option) -> Piece { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/board.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn new(color: Color, piece_type: PieceType, at: Option) -> Piece { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:78:64 [INFO] [stdout] | [INFO] [stdout] 77 | impl Piece { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 78 | pub fn new(color: Color, piece_type: PieceType, at: Option) -> Piece { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 77 | impl Piece { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn at(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | pub coordinate: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | pub color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | player_to_move: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:110:31 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 110 | en_passant_target: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | player_to_move: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:123:35 [INFO] [stdout] | [INFO] [stdout] 116 | impl Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 123 | en_passant_target: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn player_to_move(&self) -> Color { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:156:47 [INFO] [stdout] | [INFO] [stdout] 116 | impl Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn en_passant_target(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:166:48 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn can_castle_queen_side(&self, color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:173:47 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn can_castle_king_side(&self, color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:220:38 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn is_in_check(&self, color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:301:57 [INFO] [stdout] | [INFO] [stdout] 301 | pub fn place_piece(&mut self, mut piece: Piece, at: Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:308:34 [INFO] [stdout] | [INFO] [stdout] 308 | pub fn has_piece(&self, at: &Coordinate) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:317:43 [INFO] [stdout] | [INFO] [stdout] 116 | impl Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 317 | pub fn get_pieces_in(&self, area: Vec) -> Vec<(Coordinate, Option)> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:317:64 [INFO] [stdout] | [INFO] [stdout] 116 | impl Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 317 | pub fn get_pieces_in(&self, area: Vec) -> Vec<(Coordinate, Option)> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:322:37 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn get_piece_at(&self, at: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:349:37 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn get_pieces(&self, color: Color, piece_type: PieceType) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/board.rs:349:56 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn get_pieces(&self, color: Color, piece_type: PieceType) -> Vec { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:379:41 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn get_all_pieces(&self, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:425:31 [INFO] [stdout] | [INFO] [stdout] 425 | fn get_king(&self, color: Color) -> Option { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:433:37 [INFO] [stdout] | [INFO] [stdout] 433 | fn remove_piece(&mut self, at: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:440:31 [INFO] [stdout] | [INFO] [stdout] 440 | fn get_square(&self, at: &Coordinate) -> &Square { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:448:39 [INFO] [stdout] | [INFO] [stdout] 448 | fn get_square_mut(&mut self, at: &Coordinate) -> &mut Square { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:462:28 [INFO] [stdout] | [INFO] [stdout] 462 | let color: Color; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/chess_notation.rs:297:34 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn parse_move(str: &str) -> (PieceType, Coordinate) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/chess_notation.rs:297:45 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn parse_move(str: &str) -> (PieceType, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/chess_notation.rs:303:21 [INFO] [stdout] | [INFO] [stdout] 303 | let piece_type: PieceType = if first.to_lowercase().to_string() != first.to_string() { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/chess_notation.rs:317:51 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn read_move(str: &str, board: &Board, color: Color) -> Option { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ai` in module `ai` [INFO] [stdout] --> src/game.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | ai: ai::ai, [INFO] [stdout] | ^^ not found in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ai` in module `ai` [INFO] [stdout] --> src/game.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | ai2: ai::ai, [INFO] [stdout] | ^^ not found in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/game.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 82 | fn end_game(&self, winner: Color) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 122 | fn make_moves(path: Vec, board: &Board, piece: &Piece) -> Vec { [INFO] [stdout] | - ^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | |to: Coordinate| Move::new(from, to.clone(), piece.clone(), board.has_piece(&to)); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:147:32 [INFO] [stdout] | [INFO] [stdout] 147 | fn make_vector_moves(path: Vec, board: &Board, piece: &Piece) -> Vec { [INFO] [stdout] | - ^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:150:14 [INFO] [stdout] | [INFO] [stdout] 150 | |to: Coordinate| Move::new(from, to.clone(), piece.clone(), board.has_piece(&to)); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:314:39 [INFO] [stdout] | [INFO] [stdout] 314 | assert_eq!(has_piece(&board, &Coordinate::new(2, 2)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIGH_Y` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:351:50 [INFO] [stdout] | [INFO] [stdout] 351 | if (piece.color == Color::White && to.y() == HIGH_Y) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOW_Y` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:352:54 [INFO] [stdout] | [INFO] [stdout] 352 | || (piece.color == Color::Black && to.y() == LOW_Y) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:410:40 [INFO] [stdout] | [INFO] [stdout] 410 | fn square_is_empty(board: &Board, at: &Coordinate) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:415:45 [INFO] [stdout] | [INFO] [stdout] 415 | fn square_occupiable_by(board: &Board, at: &Coordinate, color: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:415:64 [INFO] [stdout] | [INFO] [stdout] 415 | fn square_occupiable_by(board: &Board, at: &Coordinate, color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:432:40 [INFO] [stdout] | [INFO] [stdout] 432 | fn has_enemy_piece(board: &Board, at: &Coordinate, own_color: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:315:39 [INFO] [stdout] | [INFO] [stdout] 315 | assert_eq!(has_piece(&board, &Coordinate::new(3, 2)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:432:63 [INFO] [stdout] | [INFO] [stdout] 432 | fn has_enemy_piece(board: &Board, at: &Coordinate, own_color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:451:20 [INFO] [stdout] | [INFO] [stdout] 451 | fn is_on_board(c: &Coordinate) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOW_X` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:452:14 [INFO] [stdout] | [INFO] [stdout] 452 | c.x() >= LOW_X && c.x() <= HIGH_X && c.y() >= LOW_Y && c.y() <= HIGH_Y [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIGH_X` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:452:32 [INFO] [stdout] | [INFO] [stdout] 452 | c.x() >= LOW_X && c.x() <= HIGH_X && c.y() >= LOW_Y && c.y() <= HIGH_Y [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOW_Y` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:452:51 [INFO] [stdout] | [INFO] [stdout] 452 | c.x() >= LOW_X && c.x() <= HIGH_X && c.y() >= LOW_Y && c.y() <= HIGH_Y [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIGH_Y` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:452:69 [INFO] [stdout] | [INFO] [stdout] 452 | c.x() >= LOW_X && c.x() <= HIGH_X && c.y() >= LOW_Y && c.y() <= HIGH_Y [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:232:15 [INFO] [stdout] | [INFO] [stdout] 232 | pub from: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | pub to: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:234:29 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct Move { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 234 | pub promoted_to: Option, // pawn promotion [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:240:27 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct Move { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 240 | pub rook_from: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct Move { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 241 | pub rook_to: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:234:29 [INFO] [stdout] | [INFO] [stdout] 234 | pub promoted_to: Option, // pawn promotion [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:240:27 [INFO] [stdout] | [INFO] [stdout] 240 | pub rook_from: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 241 | pub rook_to: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:255:22 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn new(from: Coordinate, to: Coordinate, piece: Piece, is_capture: bool) -> Move { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:255:38 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn new(from: Coordinate, to: Coordinate, piece: Piece, is_capture: bool) -> Move { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:272:15 [INFO] [stdout] | [INFO] [stdout] 272 | from: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | to: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:275:24 [INFO] [stdout] | [INFO] [stdout] 275 | promoted_type: PieceType, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:297:36 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn castle_king_side(color: Color) -> Move { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:314:37 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn castle_queen_side(color: Color) -> Move { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:338:16 [INFO] [stdout] | [INFO] [stdout] 338 | color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:339:21 [INFO] [stdout] | [INFO] [stdout] 339 | piece_type: PieceType, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:340:11 [INFO] [stdout] | [INFO] [stdout] 340 | ) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:340:23 [INFO] [stdout] | [INFO] [stdout] 340 | ) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:358:21 [INFO] [stdout] | [INFO] [stdout] 358 | piece_type: PieceType, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:359:11 [INFO] [stdout] | [INFO] [stdout] 359 | ) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:359:23 [INFO] [stdout] | [INFO] [stdout] 359 | ) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:399:26 [INFO] [stdout] | [INFO] [stdout] 395 | struct Pin { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 399 | pub can_move_to: Vec, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:399:26 [INFO] [stdout] | [INFO] [stdout] 399 | pub can_move_to: Vec, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:316:39 [INFO] [stdout] | [INFO] [stdout] 316 | assert_eq!(has_piece(&board, &Coordinate::new(4, 2)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:406:22 [INFO] [stdout] | [INFO] [stdout] 406 | attackers_color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:407:25 [INFO] [stdout] | [INFO] [stdout] 407 | attack_coordinate: &Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:423:54 [INFO] [stdout] | [INFO] [stdout] 423 | fn find_pinned_pieces(board: &Board, defender_color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:495:55 [INFO] [stdout] | [INFO] [stdout] 495 | pub fn get_checks(board: &Board, color_being_checked: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:317:39 [INFO] [stdout] | [INFO] [stdout] 317 | assert_eq!(has_piece(&board, &Coordinate::new(5, 2)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:548:46 [INFO] [stdout] | [INFO] [stdout] 548 | pub fn gen_legal_moves(board: &Board, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:589:49 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn gen_attack_vectors(board: &Board, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:602:53 [INFO] [stdout] | [INFO] [stdout] 602 | pub fn gen_pseudo_legal_moves(board: &Board, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:318:39 [INFO] [stdout] | [INFO] [stdout] 318 | assert_eq!(has_piece(&board, &Coordinate::new(6, 2)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board_console_printer::print_board` [INFO] [stdout] --> src/board.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::board_console_printer::print_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader` [INFO] [stdout] --> src/board.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::fen_reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader` [INFO] [stdout] --> src/chess_notation.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::fen_reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader::make_board` [INFO] [stdout] --> src/chess_notation.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::fen_reader::make_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:319:39 [INFO] [stdout] | [INFO] [stdout] 319 | assert_eq!(has_piece(&board, &Coordinate::new(7, 2)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board_console_printer` [INFO] [stdout] --> src/fen_reader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::board_console_printer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board_console_printer::print_board` [INFO] [stdout] --> src/fen_reader.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::board_console_printer::print_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix::Verbatim` [INFO] [stdout] --> src/fen_reader.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Prefix::Verbatim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/game.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Local, DateTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::*` [INFO] [stdout] --> src/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::board::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::move_generator::Move` [INFO] [stdout] --> src/game.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::move_generator::Move; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader::make_board` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::fen_reader::make_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board_console_printer::print_board` [INFO] [stdout] --> src/move_generator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::board_console_printer::print_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader` [INFO] [stdout] --> src/move_generator.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::fen_reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader::make_board` [INFO] [stdout] --> src/move_generator.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::fen_reader::make_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:320:39 [INFO] [stdout] | [INFO] [stdout] 320 | assert_eq!(has_piece(&board, &Coordinate::new(8, 2)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:322:39 [INFO] [stdout] | [INFO] [stdout] 322 | assert_eq!(has_piece(&board, &Coordinate::new(1, 1)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:323:39 [INFO] [stdout] | [INFO] [stdout] 323 | assert_eq!(has_piece(&board, &Coordinate::new(2, 1)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:324:39 [INFO] [stdout] | [INFO] [stdout] 324 | assert_eq!(has_piece(&board, &Coordinate::new(3, 1)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:325:39 [INFO] [stdout] | [INFO] [stdout] 325 | assert_eq!(has_piece(&board, &Coordinate::new(4, 1)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:326:39 [INFO] [stdout] | [INFO] [stdout] 326 | assert_eq!(has_piece(&board, &Coordinate::new(5, 1)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:327:39 [INFO] [stdout] | [INFO] [stdout] 327 | assert_eq!(has_piece(&board, &Coordinate::new(6, 1)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:328:39 [INFO] [stdout] | [INFO] [stdout] 328 | assert_eq!(has_piece(&board, &Coordinate::new(7, 1)), true); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/fen_reader.rs:329:39 [INFO] [stdout] | [INFO] [stdout] 329 | assert_eq!(has_piece(&board, &Coordinate::new(8, 1)), false); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ai` in `ai` [INFO] [stdout] --> src/game.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | ai: ai::ai::new(Color::Black), [INFO] [stdout] | ^^ could not find `ai` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/game.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | ai: ai::ai::new(Color::Black), [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ai` in `ai` [INFO] [stdout] --> src/game.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | ai2: ai::ai::new(Color::White), [INFO] [stdout] | ^^ could not find `ai` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/game.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | ai2: ai::ai::new(Color::White), [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/game.rs:113:78 [INFO] [stdout] | [INFO] [stdout] 113 | let m = chess_notation::read_move(command.as_str(), &self.board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `evaluator` in `ai` [INFO] [stdout] --> src/game.rs:127:28 [INFO] [stdout] | [INFO] [stdout] 127 | let eval = ai::evaluator::evaluate(&self.board); [INFO] [stdout] | ^^^^^^^^^ could not find `evaluator` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `evaluator` in `ai` [INFO] [stdout] --> src/game.rs:143:28 [INFO] [stdout] | [INFO] [stdout] 143 | let eval = ai::evaluator::evaluate(&self.board); [INFO] [stdout] | ^^^^^^^^^ could not find `evaluator` in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | let king = board.get_pieces(Color::White, PieceType::King).remove(0); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:23:51 [INFO] [stdout] | [INFO] [stdout] 23 | let king = board.get_pieces(Color::White, PieceType::King).remove(0); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(king.piece_type, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | PieceType::King => gen_king_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | PieceType::Queen => gen_queen_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | PieceType::Bishop => gen_bishop_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | PieceType::Knight => gen_knight_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | PieceType::Rook => gen_rook_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | PieceType::Pawn => gen_pawn_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | PieceType::King => gen_king_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | PieceType::Queen => gen_queen_vector(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | PieceType::Bishop => gen_bishop_vector(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | PieceType::Knight => gen_knight_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | PieceType::Rook => gen_rook_vector(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | PieceType::Pawn => gen_pawn_moves(board, piece), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:191:23 [INFO] [stdout] | [INFO] [stdout] 191 | if piece.color == Color::White && board.can_castle_queen_side(piece.color) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | Coordinate::new(2, 1), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | Coordinate::new(3, 1), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | Coordinate::new(4, 1), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:199:48 [INFO] [stdout] | [INFO] [stdout] 199 | moves.push(Move::castle_queen_side(Color::White)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:202:23 [INFO] [stdout] | [INFO] [stdout] 202 | if piece.color == Color::White && board.can_castle_king_side(piece.color) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:204:35 [INFO] [stdout] | [INFO] [stdout] 204 | let pass_through_spots = [Coordinate::new(6, 1), Coordinate::new(7, 1)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:204:58 [INFO] [stdout] | [INFO] [stdout] 204 | let pass_through_spots = [Coordinate::new(6, 1), Coordinate::new(7, 1)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:206:47 [INFO] [stdout] | [INFO] [stdout] 206 | moves.push(Move::castle_king_side(Color::White)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:209:23 [INFO] [stdout] | [INFO] [stdout] 209 | if piece.color == Color::Black && board.can_castle_queen_side(piece.color) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | Coordinate::new(2, 8), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | Coordinate::new(3, 8), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | Coordinate::new(4, 8), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:217:48 [INFO] [stdout] | [INFO] [stdout] 217 | moves.push(Move::castle_queen_side(Color::Black)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:220:23 [INFO] [stdout] | [INFO] [stdout] 220 | if piece.color == Color::Black && board.can_castle_king_side(piece.color) { [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:222:35 [INFO] [stdout] | [INFO] [stdout] 222 | let pass_through_spots = [Coordinate::new(6, 8), Coordinate::new(7, 8)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:222:58 [INFO] [stdout] | [INFO] [stdout] 222 | let pass_through_spots = [Coordinate::new(6, 8), Coordinate::new(7, 8)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:224:47 [INFO] [stdout] | [INFO] [stdout] 224 | moves.push(Move::castle_king_side(Color::Black)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:341:43 [INFO] [stdout] | [INFO] [stdout] 341 | let direction: i8 = if piece.color == Color::White { 1 } else { -1 }; [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:351:24 [INFO] [stdout] | [INFO] [stdout] 351 | if (piece.color == Color::White && to.y() == HIGH_Y) [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:352:28 [INFO] [stdout] | [INFO] [stdout] 352 | || (piece.color == Color::Black && to.y() == LOW_Y) [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:357:17 [INFO] [stdout] | [INFO] [stdout] 357 | PieceType::Rook, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:358:17 [INFO] [stdout] | [INFO] [stdout] 358 | PieceType::Queen, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | PieceType::Bishop, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:360:17 [INFO] [stdout] | [INFO] [stdout] 360 | PieceType::Knight, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:379:24 [INFO] [stdout] | [INFO] [stdout] 379 | if (piece.color == Color::White && from.y() == 2) [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:380:28 [INFO] [stdout] | [INFO] [stdout] 380 | || (piece.color == Color::Black && from.y() == 7) [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:434:9 [INFO] [stdout] | [INFO] [stdout] 434 | Color::White => Color::Black, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:434:25 [INFO] [stdout] | [INFO] [stdout] 434 | Color::White => Color::Black, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | Color::Black => Color::White, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:435:25 [INFO] [stdout] | [INFO] [stdout] 435 | Color::Black => Color::White, [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | let mut ai = ai::new(Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:59:42 [INFO] [stdout] | [INFO] [stdout] 59 | let knight = board.get_piece_at(&Coordinate::new(2, 8)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:61:41 [INFO] [stdout] | [INFO] [stdout] 61 | moves.push(Move::new(knight_at, Coordinate::new(4, 7), knight, false)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:62:41 [INFO] [stdout] | [INFO] [stdout] 62 | moves.push(Move::new(knight_at, Coordinate::new(3, 6), knight, false)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:64:42 [INFO] [stdout] | [INFO] [stdout] 64 | let bishop = board.get_piece_at(&Coordinate::new(3, 8)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:68:41 [INFO] [stdout] | [INFO] [stdout] 68 | let queen = board.get_piece_at(&Coordinate::new(1, 4)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:72:40 [INFO] [stdout] | [INFO] [stdout] 72 | let king = board.get_piece_at(&Coordinate::new(5, 8)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:77:41 [INFO] [stdout] | [INFO] [stdout] 77 | let checks = get_checks(&board, Color::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:78:61 [INFO] [stdout] | [INFO] [stdout] 78 | let possible_moves = gen_pseudo_legal_moves(&board, Color::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:112:48 [INFO] [stdout] | [INFO] [stdout] 112 | let mut king_pieces = board.get_pieces(Color::White, PieceType::King); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:112:62 [INFO] [stdout] | [INFO] [stdout] 112 | let mut king_pieces = board.get_pieces(Color::White, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:115:66 [INFO] [stdout] | [INFO] [stdout] 115 | let mut attacking_pieces = find_attacking_pieces(&board, Color::Black, &king.at().unwrap()); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:122:33 [INFO] [stdout] | [INFO] [stdout] 122 | assert_eq!(piece.color, Color::Black, "piece is black"); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | Coordinate::new(2, 4), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:128:38 [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(piece.piece_type, PieceType::Bishop, "piece is a bishop"); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:139:51 [INFO] [stdout] | [INFO] [stdout] 139 | let mut pins = find_pinned_pieces(&board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:141:42 [INFO] [stdout] | [INFO] [stdout] 141 | let bishop = board.get_piece_at(&Coordinate::new(2, 4)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:142:48 [INFO] [stdout] | [INFO] [stdout] 142 | let white_bishop = board.get_piece_at(&Coordinate::new(4, 2)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:143:40 [INFO] [stdout] | [INFO] [stdout] 143 | let king = board.get_piece_at(&Coordinate::new(5, 1)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:144:32 [INFO] [stdout] | [INFO] [stdout] 144 | let can_move_to = vec![Coordinate::new(2, 4), Coordinate::new(3, 3)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:144:55 [INFO] [stdout] | [INFO] [stdout] 144 | let can_move_to = vec![Coordinate::new(2, 4), Coordinate::new(3, 3)]; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:174:45 [INFO] [stdout] | [INFO] [stdout] 174 | let moves = gen_legal_moves(&board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:179:45 [INFO] [stdout] | [INFO] [stdout] 179 | let moves = gen_legal_moves(&board, Color::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:189:55 [INFO] [stdout] | [INFO] [stdout] 189 | let mut pins = find_pinned_pieces(&board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:198:52 [INFO] [stdout] | [INFO] [stdout] 198 | let moves = gen_attack_vectors(&board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:208:56 [INFO] [stdout] | [INFO] [stdout] 208 | let moves = gen_pseudo_legal_moves(&board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:209:56 [INFO] [stdout] | [INFO] [stdout] 209 | let moves = gen_pseudo_legal_moves(&board, Color::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:210:64 [INFO] [stdout] | [INFO] [stdout] 210 | let moves = gen_pseudo_legal_moves(&initial_board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:211:64 [INFO] [stdout] | [INFO] [stdout] 211 | let moves = gen_pseudo_legal_moves(&initial_board, Color::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:221:49 [INFO] [stdout] | [INFO] [stdout] 221 | let moves = gen_legal_moves(&board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:222:49 [INFO] [stdout] | [INFO] [stdout] 222 | let moves = gen_legal_moves(&board, Color::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:223:57 [INFO] [stdout] | [INFO] [stdout] 223 | let moves = gen_legal_moves(&initial_board, Color::White); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:224:57 [INFO] [stdout] | [INFO] [stdout] 224 | let moves = gen_legal_moves(&initial_board, Color::Black); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/board.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 318 | panic!("not implemented"); [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] 319 | vec![] [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:298:68 [INFO] [stdout] | [INFO] [stdout] 298 | let (from, to) = Move::king_side_castle_coordinates(color, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:299:78 [INFO] [stdout] | [INFO] [stdout] 299 | let (rook_from, rook_to) = Move::king_side_castle_coordinates(color, PieceType::Rook); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:301:38 [INFO] [stdout] | [INFO] [stdout] 301 | piece: Piece::new(color, PieceType::King, Some(from.clone())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:307:42 [INFO] [stdout] | [INFO] [stdout] 307 | rook: Some(Piece::new(color, PieceType::Rook, Some(rook_from.clone()))), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:315:69 [INFO] [stdout] | [INFO] [stdout] 315 | let (from, to) = Move::queen_side_castle_coordinates(color, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:316:79 [INFO] [stdout] | [INFO] [stdout] 316 | let (rook_from, rook_to) = Move::queen_side_castle_coordinates(color, PieceType::Rook); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:318:38 [INFO] [stdout] | [INFO] [stdout] 318 | piece: Piece::new(color, PieceType::King, Some(from.clone())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:324:42 [INFO] [stdout] | [INFO] [stdout] 324 | rook: Some(Piece::new(color, PieceType::Rook, Some(rook_from.clone()))), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:341:33 [INFO] [stdout] | [INFO] [stdout] 341 | let y: u8 = if color == Color::White { 1 } else { 8 }; [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | PieceType::King => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:344:28 [INFO] [stdout] | [INFO] [stdout] 344 | let from = Coordinate::new(5, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:345:26 [INFO] [stdout] | [INFO] [stdout] 345 | let to = Coordinate::new(7, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:348:13 [INFO] [stdout] | [INFO] [stdout] 348 | PieceType::Rook => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:349:28 [INFO] [stdout] | [INFO] [stdout] 349 | let from = Coordinate::new(8, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:350:26 [INFO] [stdout] | [INFO] [stdout] 350 | let to = Coordinate::new(6, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/move_generator.rs:360:33 [INFO] [stdout] | [INFO] [stdout] 360 | let y: u8 = if color == Color::White { 1 } else { 8 }; [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:362:13 [INFO] [stdout] | [INFO] [stdout] 362 | PieceType::King => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:363:28 [INFO] [stdout] | [INFO] [stdout] 363 | let from = Coordinate::new(5, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:364:26 [INFO] [stdout] | [INFO] [stdout] 364 | let to = Coordinate::new(3, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:367:13 [INFO] [stdout] | [INFO] [stdout] 367 | PieceType::Rook => { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:368:28 [INFO] [stdout] | [INFO] [stdout] 368 | let from = Coordinate::new(1, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Coordinate` [INFO] [stdout] --> src/move_generator.rs:369:26 [INFO] [stdout] | [INFO] [stdout] 369 | let to = Coordinate::new(4, y); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Coordinate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:428:60 [INFO] [stdout] | [INFO] [stdout] 428 | let mut king_pieces = board.get_pieces(defender_color, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:444:17 [INFO] [stdout] | [INFO] [stdout] 444 | if t == PieceType::Queen || t == PieceType::Bishop || t == PieceType::Rook { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:444:42 [INFO] [stdout] | [INFO] [stdout] 444 | if t == PieceType::Queen || t == PieceType::Bishop || t == PieceType::Rook { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:444:68 [INFO] [stdout] | [INFO] [stdout] 444 | if t == PieceType::Queen || t == PieceType::Bishop || t == PieceType::Rook { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:497:61 [INFO] [stdout] | [INFO] [stdout] 497 | let king_pieces = board.get_pieces(color_being_checked, PieceType::King); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:523:34 [INFO] [stdout] | [INFO] [stdout] 523 | if m.piece.piece_type != PieceType::King { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PieceType` [INFO] [stdout] --> src/move_generator.rs:540:70 [INFO] [stdout] | [INFO] [stdout] 540 | || (is_interposing_move && m.piece.piece_type != PieceType::King) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PieceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/board.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | pub piece_type: PieceType, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | pub color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Piece { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 68 | at: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | at: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn new(color: Color, piece_type: PieceType, at: Option) -> Piece { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/board.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn new(color: Color, piece_type: PieceType, at: Option) -> Piece { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:78:64 [INFO] [stdout] | [INFO] [stdout] 77 | impl Piece { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 78 | pub fn new(color: Color, piece_type: PieceType, at: Option) -> Piece { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 77 | impl Piece { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn at(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | pub coordinate: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | pub color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | player_to_move: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:110:31 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 110 | en_passant_target: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | player_to_move: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:123:35 [INFO] [stdout] | [INFO] [stdout] 116 | impl Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 123 | en_passant_target: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn player_to_move(&self) -> Color { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:156:47 [INFO] [stdout] | [INFO] [stdout] 116 | impl Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn en_passant_target(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:166:48 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn can_castle_queen_side(&self, color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:173:47 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn can_castle_king_side(&self, color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:220:38 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn is_in_check(&self, color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:301:57 [INFO] [stdout] | [INFO] [stdout] 301 | pub fn place_piece(&mut self, mut piece: Piece, at: Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:308:34 [INFO] [stdout] | [INFO] [stdout] 308 | pub fn has_piece(&self, at: &Coordinate) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:317:43 [INFO] [stdout] | [INFO] [stdout] 116 | impl Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 317 | pub fn get_pieces_in(&self, area: Vec) -> Vec<(Coordinate, Option)> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:317:64 [INFO] [stdout] | [INFO] [stdout] 116 | impl Board { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 317 | pub fn get_pieces_in(&self, area: Vec) -> Vec<(Coordinate, Option)> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:322:37 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn get_piece_at(&self, at: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:349:37 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn get_pieces(&self, color: Color, piece_type: PieceType) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/board.rs:349:56 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn get_pieces(&self, color: Color, piece_type: PieceType) -> Vec { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:379:41 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn get_all_pieces(&self, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:425:31 [INFO] [stdout] | [INFO] [stdout] 425 | fn get_king(&self, color: Color) -> Option { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:433:37 [INFO] [stdout] | [INFO] [stdout] 433 | fn remove_piece(&mut self, at: &Coordinate) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:440:31 [INFO] [stdout] | [INFO] [stdout] 440 | fn get_square(&self, at: &Coordinate) -> &Square { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/board.rs:448:39 [INFO] [stdout] | [INFO] [stdout] 448 | fn get_square_mut(&mut self, at: &Coordinate) -> &mut Square { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/board.rs:462:28 [INFO] [stdout] | [INFO] [stdout] 462 | let color: Color; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/chess_notation.rs:297:34 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn parse_move(str: &str) -> (PieceType, Coordinate) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/chess_notation.rs:297:45 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn parse_move(str: &str) -> (PieceType, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/chess_notation.rs:303:21 [INFO] [stdout] | [INFO] [stdout] 303 | let piece_type: PieceType = if first.to_lowercase().to_string() != first.to_string() { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/chess_notation.rs:317:51 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn read_move(str: &str, board: &Board, color: Color) -> Option { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/fen_reader.rs:248:42 [INFO] [stdout] | [INFO] [stdout] 248 | fn has_piece(board: &Board, at: &Coordinate) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ai` in module `ai` [INFO] [stdout] --> src/game.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | ai: ai::ai, [INFO] [stdout] | ^^ not found in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ai` in module `ai` [INFO] [stdout] --> src/game.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | ai2: ai::ai, [INFO] [stdout] | ^^ not found in `ai` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/game.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 82 | fn end_game(&self, winner: Color) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 122 | fn make_moves(path: Vec, board: &Board, piece: &Piece) -> Vec { [INFO] [stdout] | - ^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | |to: Coordinate| Move::new(from, to.clone(), piece.clone(), board.has_piece(&to)); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:147:32 [INFO] [stdout] | [INFO] [stdout] 147 | fn make_vector_moves(path: Vec, board: &Board, piece: &Piece) -> Vec { [INFO] [stdout] | - ^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:150:14 [INFO] [stdout] | [INFO] [stdout] 150 | |to: Coordinate| Move::new(from, to.clone(), piece.clone(), board.has_piece(&to)); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIGH_Y` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:351:50 [INFO] [stdout] | [INFO] [stdout] 351 | if (piece.color == Color::White && to.y() == HIGH_Y) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOW_Y` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:352:54 [INFO] [stdout] | [INFO] [stdout] 352 | || (piece.color == Color::Black && to.y() == LOW_Y) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:410:40 [INFO] [stdout] | [INFO] [stdout] 410 | fn square_is_empty(board: &Board, at: &Coordinate) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:415:45 [INFO] [stdout] | [INFO] [stdout] 415 | fn square_occupiable_by(board: &Board, at: &Coordinate, color: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:415:64 [INFO] [stdout] | [INFO] [stdout] 415 | fn square_occupiable_by(board: &Board, at: &Coordinate, color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:432:40 [INFO] [stdout] | [INFO] [stdout] 432 | fn has_enemy_piece(board: &Board, at: &Coordinate, own_color: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:432:63 [INFO] [stdout] | [INFO] [stdout] 432 | fn has_enemy_piece(board: &Board, at: &Coordinate, own_color: Color) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:451:20 [INFO] [stdout] | [INFO] [stdout] 451 | fn is_on_board(c: &Coordinate) -> bool { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOW_X` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:452:14 [INFO] [stdout] | [INFO] [stdout] 452 | c.x() >= LOW_X && c.x() <= HIGH_X && c.y() >= LOW_Y && c.y() <= HIGH_Y [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIGH_X` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:452:32 [INFO] [stdout] | [INFO] [stdout] 452 | c.x() >= LOW_X && c.x() <= HIGH_X && c.y() >= LOW_Y && c.y() <= HIGH_Y [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOW_Y` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:452:51 [INFO] [stdout] | [INFO] [stdout] 452 | c.x() >= LOW_X && c.x() <= HIGH_X && c.y() >= LOW_Y && c.y() <= HIGH_Y [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIGH_Y` in this scope [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:452:69 [INFO] [stdout] | [INFO] [stdout] 452 | c.x() >= LOW_X && c.x() <= HIGH_X && c.y() >= LOW_Y && c.y() <= HIGH_Y [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:232:15 [INFO] [stdout] | [INFO] [stdout] 232 | pub from: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | pub to: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:234:29 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct Move { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 234 | pub promoted_to: Option, // pawn promotion [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:240:27 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct Move { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 240 | pub rook_from: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct Move { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 241 | pub rook_to: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:234:29 [INFO] [stdout] | [INFO] [stdout] 234 | pub promoted_to: Option, // pawn promotion [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:240:27 [INFO] [stdout] | [INFO] [stdout] 240 | pub rook_from: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 241 | pub rook_to: Option, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:255:22 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn new(from: Coordinate, to: Coordinate, piece: Piece, is_capture: bool) -> Move { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:255:38 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn new(from: Coordinate, to: Coordinate, piece: Piece, is_capture: bool) -> Move { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:272:15 [INFO] [stdout] | [INFO] [stdout] 272 | from: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | to: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:275:24 [INFO] [stdout] | [INFO] [stdout] 275 | promoted_type: PieceType, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:297:36 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn castle_king_side(color: Color) -> Move { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 211 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:314:37 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn castle_queen_side(color: Color) -> Move { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:338:16 [INFO] [stdout] | [INFO] [stdout] 338 | color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:339:21 [INFO] [stdout] | [INFO] [stdout] 339 | piece_type: PieceType, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:340:11 [INFO] [stdout] | [INFO] [stdout] 340 | ) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:340:23 [INFO] [stdout] | [INFO] [stdout] 340 | ) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PieceType` in this scope [INFO] [stdout] --> src/move_generator.rs:358:21 [INFO] [stdout] | [INFO] [stdout] 358 | piece_type: PieceType, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:359:11 [INFO] [stdout] | [INFO] [stdout] 359 | ) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:359:23 [INFO] [stdout] | [INFO] [stdout] 359 | ) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:399:26 [INFO] [stdout] | [INFO] [stdout] 395 | struct Pin { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 399 | pub can_move_to: Vec, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:399:26 [INFO] [stdout] | [INFO] [stdout] 399 | pub can_move_to: Vec, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:406:22 [INFO] [stdout] | [INFO] [stdout] 406 | attackers_color: Color, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Coordinate` in this scope [INFO] [stdout] --> src/move_generator.rs:407:25 [INFO] [stdout] | [INFO] [stdout] 407 | attack_coordinate: &Coordinate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:423:54 [INFO] [stdout] | [INFO] [stdout] 423 | fn find_pinned_pieces(board: &Board, defender_color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:495:55 [INFO] [stdout] | [INFO] [stdout] 495 | pub fn get_checks(board: &Board, color_being_checked: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:548:46 [INFO] [stdout] | [INFO] [stdout] 548 | pub fn gen_legal_moves(board: &Board, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:589:49 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn gen_attack_vectors(board: &Board, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Color` in this scope [INFO] [stdout] --> src/move_generator.rs:602:53 [INFO] [stdout] | [INFO] [stdout] 602 | pub fn gen_pseudo_legal_moves(board: &Board, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 | use console::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chess_engine` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `crate::board_console_printer::print_board` [INFO] [stdout] --> src/board.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::board_console_printer::print_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader` [INFO] [stdout] --> src/board.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::fen_reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board_console_printer` [INFO] [stdout] --> src/fen_reader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::board_console_printer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board_console_printer::print_board` [INFO] [stdout] --> src/fen_reader.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::board_console_printer::print_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix::Verbatim` [INFO] [stdout] --> src/fen_reader.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Prefix::Verbatim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/game.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Local, DateTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::*` [INFO] [stdout] --> src/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::board::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::move_generator::Move` [INFO] [stdout] --> src/game.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::move_generator::Move; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader::make_board` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::fen_reader::make_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::*` [INFO] [stdout] --> src/move_generator/pseudo_legal_move_generator.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::board::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board_console_printer::print_board` [INFO] [stdout] --> src/move_generator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::board_console_printer::print_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fen_reader::make_initial_board` [INFO] [stdout] --> src/move_generator.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::fen_reader::make_initial_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/board.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 318 | panic!("not implemented"); [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] 319 | vec![] [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 342 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "186c29a434899d1e36b98e07068922902c545090d845834b2297fb1f54285d96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "186c29a434899d1e36b98e07068922902c545090d845834b2297fb1f54285d96", kill_on_drop: false }` [INFO] [stdout] 186c29a434899d1e36b98e07068922902c545090d845834b2297fb1f54285d96