commit ca5fcfa0933be2c480c13eea1643ffd9f6e3992a parent 58772a494cb8ddb645e95fa270021375e8663be7 Author: n0tr1v <n0tr1v@protonmail.com> Date: Mon, 12 Jun 2023 13:57:31 -0700 add doc Diffstat:
| M | pkg/web/handlers/interceptors/chess.go | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go @@ -638,6 +638,7 @@ func (g *ChessGame) updatePiecesCache(mov chess.Move) { } } +// Creates a map of pieces on the board and their count func pieceMap(board *chess.Board) map[chess.Piece]int { m := board.SquareMap() out := make(map[chess.Piece]int)