swapColor function

Color swapColor(
  1. Color c
)

Implementation

Color swapColor(Color c) {
  return c == WHITE ? BLACK : WHITE;
}