enum

Chess::Colour

Inherits Enum < Comparable < Value < Object

Constants

Black = 0
White = 1

Instance methods

black?

Returns true if this enum value equals Black

Source
flip
Source
white?

Returns true if this enum value equals White

Source