package chess

// 方向
var (
	Up    = Position{Y: -1}
	Down  = Position{Y: 1}
	Left  = Position{X: -1}
	Right = Position{X: 1}
)

// StraightDirections 四个直线方向
var StraightDirections = []Position{Up, Down, Left, Right}

// KnightDirections 马可以走的8个方向
var KnightDirections = []Position{
	{2, 1}, {2, -1}, {-2, 1}, {-2, -1},
	{1, 2}, {1, -2}, {-1, 2}, {-1, -2},
}

// QueenDirections 仕斜走四个方桑
var QueenDirections = []Position{{-1, -1}, {-1, 1}, {1, -1}, {1, 1}}

// KingDirections 王走的8个方向
var KingDirections = []Position{{-1, -1}, {-1, 0}, {-1, 1}, {0, -1}, {0, 1}, {1, -1}, {1, 0}, {1, 1}}
