Editorial for COCI '07 Contest 1 #2 PEG


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

For each piece on the board and each direction, we check if it is possible to move the selected piece in the selected direction. Caution should be taken not to move the piece off the board.


Comments

There are no comments at the moment.