diff --git a/lib/chessapp/chess_utils.dart b/lib/chessapp/chess_utils.dart index 4d6ab40..3e24caf 100644 --- a/lib/chessapp/chess_utils.dart +++ b/lib/chessapp/chess_utils.dart @@ -37,8 +37,8 @@ Map chessPiecesAssets = { }; class ChessCoordinate { - late int column; - late int row; + final int column; + final int row; ChessCoordinate(this.column, this.row); @@ -60,6 +60,14 @@ class ChessCoordinate { return colInt; } + @override + String toString() { + String row = this.row.toString(); + String col = this.column.toString(); + + return '$col$row'; + } + @override operator ==(other) { return other is ChessCoordinate &&