fixed a bug, where a loop would never end, because of the weird behaviour of uint (255+1<255)
1 files changed, 3 insertions(+), 1 deletions(-) M position/makemove_test.go
M position/makemove_test.go +3 -1
@@ 737,7 737,9 @@ func TestMakeMovePiecePlacement(t *testi } func checkPosition(t *testing.T, p *Position, expected map[b.Square]Piece, name string) { - for square := b.NoSquare; square <= b.BiggestSquare; square++ { + for idx := range p.piecePlacement.board { + square := b.Square(idx) + // for square := b.NoSquare; square <= b.BiggestSquare; square++ { if b.IsValid(square) { if piece, ok := expected[square]; ok { if p.Get(square) != piece {