Hi,
Im trying to create a chessboard where i want to search all squares one step away from every piece on the board and return the free squares. But i dont want to search the diagonal squares.
Something like this: Where [_] is a free square and X is the piece
…[_]
[_] X [_]
…[_]
Im pretty sure its some kind of breadth first search but i have no idee how to do it.
How should I create that function? [import]uid: 126729 topic_id: 29468 reply_id: 329468[/import]
