Rooks Movements


#21

Thanks to Thibaud I was able to solve the puzzle.
For everyone who faces the same problem: Check what your program does when you have opponent pieces in both vertical and horizontal directions. Remember that the output always has to be in lexicographical order.