feat: show last jans & moves

This commit is contained in:
Henri Bourcereau 2024-10-02 18:03:44 +02:00
parent fbd5976d88
commit c5321e6186
4 changed files with 36 additions and 12 deletions

View file

@ -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