/bishopRookQueen

Design some classes

Primary LanguagePHP

bishopRookQueen

Design some classes

There are three chess figures: Bishop, Rook and Queen.

Bishop moves along a diagonal line.

Rook moveshorizontally or vertically.

Queen moves like Bishop and Rook.

#Task Desing classes hierarchy to emlement validation of chess figure movement. Try to not use code duplication.

There will be move($start, $end) action, it will return bool(true|false). It will accept two arguments: coordinates of start and end of movement.