queen in chess board can be moved any number of unoccupied squares in a static line vertically or horizontally code example
Example: one space diagonally in java
class Point {
private:
int x, y;
public:
Point(int i, int j); // x = i; y = j;
int GetX();
int GetY();
void SetX(int i);
void SetY(int j);
void SetPoint(int i, int j); x = i; y = j;
}