Compare commits
No commits in common. "beads-sync" and "main" have entirely different histories.
beads-sync
...
main
|
|
@ -1 +0,0 @@
|
||||||
{"id":"trictrac-wxm","title":"Make a python library to use in Open Spiel","description":"A python tritrac game definition for Open Spiel, without implementation, is in the project located at doc/refs/open_spiel/open_spiel/python/games/trictrac.py (doc/refs/open_spiel is a symbolic link).\n\nI want to use PYO3, like in the `store/src/pyengine.rs` file, to expose the structures and methods needed to implement the functions of the `open_spiel` `trictrac.py` game file.\n\nEstablish an action plan and create sub-tasks of this issue for each step.\n","status":"closed","priority":2,"issue_type":"task","owner":"henri.bourcereau@gmail.com","created_at":"2026-01-18T19:24:00.323375444+01:00","created_by":"Henri Bourcereau","updated_at":"2026-01-18T20:03:17.168210389+01:00","closed_at":"2026-01-18T20:03:17.168210389+01:00","close_reason":"Closed"}
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"database": "beads.db",
|
|
||||||
"jsonl_export": "issues.jsonl"
|
|
||||||
}
|
|
||||||
|
|
@ -237,7 +237,7 @@ impl TrictracEnvironment {
|
||||||
|
|
||||||
// Mapper l'index d'action sur une action valide
|
// Mapper l'index d'action sur une action valide
|
||||||
let action_index = (action.index as usize) % valid_actions.len();
|
let action_index = (action.index as usize) % valid_actions.len();
|
||||||
Some(valid_actions[action_index])
|
Some(valid_actions[action_index].clone())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Exécute une action Trictrac dans le jeu
|
/// Exécute une action Trictrac dans le jeu
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ use std::fmt::{Debug, Display, Formatter};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use store::{CheckerMove, GameEvent, GameState};
|
use store::{CheckerMove, GameEvent, GameState};
|
||||||
|
|
||||||
// 1 (Roll) + 1 (Go) + 512 (mouvements possibles)
|
// 1 (Roll) + 1 (Go) + mouvements possibles
|
||||||
// avec 512 = 2 (choix du dé) * 16 * 16 (choix de la dame 0-15 pour chaque from)
|
// Pour les mouvements : 2*16*16 = 514 (choix du dé + choix de la dame 0-15 pour chaque from)
|
||||||
pub const ACTION_SPACE_SIZE: usize = 514;
|
pub const ACTION_SPACE_SIZE: usize = 514;
|
||||||
|
|
||||||
/// Types d'actions possibles dans le jeu
|
/// Types d'actions possibles dans le jeu
|
||||||
|
|
|
||||||
|
|
@ -53,10 +53,6 @@ Client
|
||||||
|
|
||||||
### Epic : Bot
|
### Epic : Bot
|
||||||
|
|
||||||
- PGX
|
|
||||||
- https://joe-antognini.github.io/ml/jax-tic-tac-toe
|
|
||||||
- https://www.sotets.uk/pgx/api_usage/
|
|
||||||
|
|
||||||
- OpenAi gym
|
- OpenAi gym
|
||||||
- doc gymnasium <https://gymnasium.farama.org/introduction/basic_usage/>
|
- doc gymnasium <https://gymnasium.farama.org/introduction/basic_usage/>
|
||||||
- Rust implementation for OpenAi gym <https://github.com/MathisWellmann/gym-rs>
|
- Rust implementation for OpenAi gym <https://github.com/MathisWellmann/gym-rs>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue