train burn-rl with integers
This commit is contained in:
parent
5b02293221
commit
e4b3092018
6 changed files with 47 additions and 64 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue