I'm trying to figure out the best way to compile a list of legal moves for a board game. If this were Python I'd simply put all the x/y positions into a list. But I don't see that functionality here.
Step 1: Legal moves in all directions.
Step 2: Remove moves from positions already taken by another piece.