wip fix train
This commit is contained in:
parent
ab959fa27b
commit
a2e54bc449
9 changed files with 335 additions and 229 deletions
|
|
@ -52,6 +52,15 @@ impl Player {
|
|||
self.points, self.holes, self.can_bredouille as u8, self.can_big_bredouille as u8
|
||||
)
|
||||
}
|
||||
|
||||
pub fn to_vec(&self) -> Vec<u8> {
|
||||
vec![
|
||||
self.points,
|
||||
self.holes,
|
||||
self.can_bredouille as u8,
|
||||
self.can_big_bredouille as u8,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents a player in the game.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue