feat: python store bindings (wip)

This commit is contained in:
Henri Bourcereau 2026-02-08 18:57:20 +01:00
parent 453c363334
commit 47142d593f
4 changed files with 48 additions and 158 deletions

View file

@ -90,7 +90,12 @@ impl fmt::Display for GameState {
self.stage, self.turn_stage
));
s.push_str(&format!("Dice: {:?}\n", self.dice));
// s.push_str(&format!("Who plays: {}\n", self.who_plays().map(|player| &player.name ).unwrap_or("")));
s.push_str(&format!(
"Who plays: {}\n",
self.who_plays()
.map(|player| &player.name)
.unwrap_or(&String::from(""))
));
s.push_str(&format!("Board: {:?}\n", self.board));
// s.push_str(&format!("History: {:?}\n", self.history));
write!(f, "{s}")