From ad58c0ec607aa1d9d4c6aa5c67e115dfbd7be367 Mon Sep 17 00:00:00 2001 From: Henri Bourcereau Date: Fri, 1 Aug 2025 14:21:48 +0200 Subject: [PATCH] fix build trainbot --- justfile | 4 +++- store/src/board.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 1ccd971..465271e 100644 --- a/justfile +++ b/justfile @@ -20,7 +20,9 @@ pythonlib: trainbot: #python ./store/python/trainModel.py # cargo run --bin=train_dqn # ok - cargo run --bin=train_dqn_burn + cargo build --release --bin=train_dqn_burn + LD_LIBRARY_PATH=./target/release ./target/release/train_dqn_burn + # cargo run --bin=train_dqn_burn # utilise debug (why ?) debugtrainbot: cargo build --bin=train_dqn_burn RUST_BACKTRACE=1 LD_LIBRARY_PATH=./target/debug ./target/debug/train_dqn_burn diff --git a/store/src/board.rs b/store/src/board.rs index ada22c9..646e929 100644 --- a/store/src/board.rs +++ b/store/src/board.rs @@ -564,6 +564,7 @@ impl Board { } let checker_color = self.get_checkers_color(field)?; if Some(color) != checker_color { + println!("field invalid : {:?}, {:?}, {:?}", color, field, self); return Err(Error::FieldInvalid); } let unit = match color {