From a8dd06590a165e2d6c333d684080d2da1e89c64d Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 18 Sep 2024 06:27:52 +0200 Subject: [PATCH] Add TODO about collisions --- chess/board.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chess/board.go b/chess/board.go index 5007d02..1e3930d 100644 --- a/chess/board.go +++ b/chess/board.go @@ -211,6 +211,7 @@ func (b *Board) movePawn(position string) error { // * 2 moves from start position // * 1 move otherwise // * diagonal if attacking + // * no collision with other pieces return fmt.Errorf("no pawn found that can move to %s", position) }