swap_color static method

Color swap_color(
  1. Color c
)

Swaps current turn.

Implementation

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