Beispiel #1
0
 private void AddKingThreats(
     Board board,
     Player player,
     BoardLocation playerKingLocation,
     BoardLocation opposingPieceBoardLocation,
     ThreatMatrix threatMatrix)
 {
     opposingPieceBoardLocation
     .Neighbors()
     .ForEach(a => AddThreat(threatMatrix, playerKingLocation, opposingPieceBoardLocation, a, ThreatDirection.Direct));
 }