feat: show last jans & moves
This commit is contained in:
parent
fbd5976d88
commit
c5321e6186
4 changed files with 36 additions and 12 deletions
|
|
@ -35,6 +35,10 @@ impl Default for CheckerMove {
|
|||
}
|
||||
|
||||
impl CheckerMove {
|
||||
pub fn to_display_string(self) -> String {
|
||||
format!("{:?} ", self)
|
||||
}
|
||||
|
||||
pub fn new(from: Field, to: Field) -> Result<Self, Error> {
|
||||
// println!("from {} to {}", from, to);
|
||||
// check if the field is on the board
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue