From 68014734561c3a8d8712916bdfa58b8347131501 Mon Sep 17 00:00:00 2001 From: Mike White Date: Thu, 26 Aug 2021 16:42:24 -0400 Subject: Fixed bug --- model/src/coordinates.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model/src') diff --git a/model/src/coordinates.rs b/model/src/coordinates.rs index 34dcdcf..a055f46 100644 --- a/model/src/coordinates.rs +++ b/model/src/coordinates.rs @@ -72,7 +72,7 @@ impl SquareCoordinate { 7 => 1, _ => unreachable!(), }; - let row_value = match self.file { + let row_value = match self.rank { 1 => 0, 3 => 8, 5 => 16, -- cgit v1.2.3