Fix king moves.
This commit is contained in:
parent
6b4dea5145
commit
2d5eacb351
@ -17,5 +17,5 @@ func (k King) GetColor() types.ChessColor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (k King) GetAllNonBlockedMoves(board Board, fromSquare types.Coordinate) []types.Coordinate {
|
func (k King) GetAllNonBlockedMoves(board Board, fromSquare types.Coordinate) []types.Coordinate {
|
||||||
return []types.Coordinate{}
|
return board.GetNonBlockedKingMoves(fromSquare)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user