dicechess.engine.domain.Models$package.Color
Represents the player colors: White (0) or Black (1).
Uses bitwise XOR for fast toggling between opponents.
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Safe builder to validate boundary invariants.
Safe builder to validate boundary invariants.
Attributes
Returns true when this color is Black.
Returns true when this color is Black.
Attributes
Returns true when this color is White.
Returns true when this color is White.
Attributes
Returns the opposing color. Implemented as XOR for branch-free toggling.
Returns the opposing color. Implemented as XOR for branch-free toggling.
Attributes
Exposes the underlying Int value (0 = White, 1 = Black).
Exposes the underlying Int value (0 = White, 1 = Black).
Attributes