diff options
| author | Micha White <botahamec@outlook.com> | 2023-12-22 10:02:53 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-12-22 10:02:53 -0500 |
| commit | bc75b075ef59a6b3b04b8a7b060809b64e8886d0 (patch) | |
| tree | c5d9f8843332a77be27366eb660acb73c0f8179b /model/src/moves.rs | |
| parent | 207503ddd087af15c4cd09d54cddd54cee19b7f6 (diff) | |
Add SquareCoordinates methods
Diffstat (limited to 'model/src/moves.rs')
| -rw-r--r-- | model/src/moves.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/src/moves.rs b/model/src/moves.rs index 525a35c..c266f77 100644 --- a/model/src/moves.rs +++ b/model/src/moves.rs @@ -131,8 +131,8 @@ impl Display for Move { write!( f, "{}-{}", - SquareCoordinate::from_value(self.start() as usize), - SquareCoordinate::from_value(self.end_position()) + SquareCoordinate::from_ampere_value(self.start() as usize), + SquareCoordinate::from_ampere_value(self.end_position()) ) } } |
