dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 5a7a9d3fd858c7c12af0b86c51b98ffed55c26d4
parent 074be8226b0cc198a623115a51402ee56daad519
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 16 Jun 2023 23:20:56 -0700

cleanup

Diffstat:
Mpkg/web/handlers/chess.go | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go @@ -679,11 +679,8 @@ Loop: // Calc visible pieces visiblePieces := make(map[chess.Square]struct{}) - for i := 0; i < 64; i++ { - sq := chess.Square(i) - if pos.Board().Piece(sq) != chess.NoPiece { - visiblePieces[sq] = struct{}{} - } + for sq := range squareMap { + visiblePieces[sq] = struct{}{} } var styles StylesBuilder