king_attacked method

bool king_attacked(
  1. Color color
)

Implementation

bool king_attacked(Color color) {
  return attacked(swap_color(color), kings[color]);
}