train burn-rl with integers

This commit is contained in:
Henri Bourcereau 2025-08-10 08:39:31 +02:00
parent 5b02293221
commit e4b3092018
6 changed files with 47 additions and 64 deletions

View file

@ -151,6 +151,7 @@ impl GameState {
/// Get state as a vector (to be used for bot training input) :
/// length = 36
/// i8 for board positions with negative values for blacks
pub fn to_vec(&self) -> Vec<i8> {
let state_len = 36;
let mut state = Vec::with_capacity(state_len);