+ 3
You don't do proper bounds checks. Piece #23 isn't going to have a neighbor with id 23+5==28, since there are only 25 pieces on the board.
7th Jan 2022, 4:19 PM
Schindlabua
Schindlabua - avatar