bitboard

package
v0.0.0-...-7af1aca Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitCoords

func BitCoords(c *Constants, bits uint64) (x, y uint)

func Dimensions

func Dimensions(c *Constants, bits uint64) (w, h int)

func Flood

func Flood(c *Constants, within uint64, seed uint64) uint64

func FloodGroups

func FloodGroups(c *Constants, bits uint64, out []uint64) []uint64

func Grow

func Grow(c *Constants, within uint64, seed uint64) uint64

func Popcount

func Popcount(x uint64) int

func TrailingZeros

func TrailingZeros(x uint64) uint

Types

type Constants

type Constants struct {
	Size       uint
	L, R, T, B uint64
	Edge       uint64
	Mask       uint64
}

func Precompute

func Precompute(size uint) Constants

Jump to

Keyboard shortcuts

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