fix build trainbot
This commit is contained in:
parent
fd269b491d
commit
ad58c0ec60
4
justfile
4
justfile
|
|
@ -20,7 +20,9 @@ pythonlib:
|
||||||
trainbot:
|
trainbot:
|
||||||
#python ./store/python/trainModel.py
|
#python ./store/python/trainModel.py
|
||||||
# cargo run --bin=train_dqn # ok
|
# 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:
|
debugtrainbot:
|
||||||
cargo build --bin=train_dqn_burn
|
cargo build --bin=train_dqn_burn
|
||||||
RUST_BACKTRACE=1 LD_LIBRARY_PATH=./target/debug ./target/debug/train_dqn_burn
|
RUST_BACKTRACE=1 LD_LIBRARY_PATH=./target/debug ./target/debug/train_dqn_burn
|
||||||
|
|
|
||||||
|
|
@ -564,6 +564,7 @@ impl Board {
|
||||||
}
|
}
|
||||||
let checker_color = self.get_checkers_color(field)?;
|
let checker_color = self.get_checkers_color(field)?;
|
||||||
if Some(color) != checker_color {
|
if Some(color) != checker_color {
|
||||||
|
println!("field invalid : {:?}, {:?}, {:?}", color, field, self);
|
||||||
return Err(Error::FieldInvalid);
|
return Err(Error::FieldInvalid);
|
||||||
}
|
}
|
||||||
let unit = match color {
|
let unit = match color {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue