diff --git a/bot/src/burnrl/environment_valid.rs b/bot/src/burnrl/environment_valid.rs index 9c27af9..7a709b4 100644 --- a/bot/src/burnrl/environment_valid.rs +++ b/bot/src/burnrl/environment_valid.rs @@ -237,7 +237,7 @@ impl TrictracEnvironment { // Mapper l'index d'action sur une action valide let action_index = (action.index as usize) % valid_actions.len(); - Some(valid_actions[action_index].clone()) + Some(valid_actions[action_index]) } /// Exécute une action Trictrac dans le jeu diff --git a/bot/src/training_common.rs b/bot/src/training_common.rs index ee33d0c..8c85021 100644 --- a/bot/src/training_common.rs +++ b/bot/src/training_common.rs @@ -6,8 +6,8 @@ use std::fmt::{Debug, Display, Formatter}; use serde::{Deserialize, Serialize}; use store::{CheckerMove, GameEvent, GameState}; -// 1 (Roll) + 1 (Go) + mouvements possibles -// Pour les mouvements : 2*16*16 = 514 (choix du dé + choix de la dame 0-15 pour chaque from) +// 1 (Roll) + 1 (Go) + 512 (mouvements possibles) +// avec 512 = 2 (choix du dé) * 16 * 16 (choix de la dame 0-15 pour chaque from) pub const ACTION_SPACE_SIZE: usize = 514; /// Types d'actions possibles dans le jeu diff --git a/doc/backlog.md b/doc/backlog.md index cf23e3b..dd52d54 100644 --- a/doc/backlog.md +++ b/doc/backlog.md @@ -53,6 +53,10 @@ Client ### Epic : Bot +- PGX + - https://joe-antognini.github.io/ml/jax-tic-tac-toe + - https://www.sotets.uk/pgx/api_usage/ + - OpenAi gym - doc gymnasium - Rust implementation for OpenAi gym