feat: python store bindings (wip)
This commit is contained in:
parent
453c363334
commit
47142d593f
4 changed files with 48 additions and 158 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue