color

package
v1.13.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

the core package provides basic functionality to all the major components of the code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color int

Color is one of Empty, Black, or White

const (
	Empty Color = iota
	Black
	White
	FillBlack
	FillWhite
	FillDame
)

func (Color) Equal

func (c Color) Equal(d Color) bool

func (Color) Fill

func (c Color) Fill() Color

func (Color) Opposite

func (c Color) Opposite() Color

Opposite: Black -> White, White -> Black, Empty -> Empty

func (Color) String

func (c Color) String() string

String is just for debugging purposes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL