game

package
v0.0.0-...-f45327a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board interface {
	fmt.Stringer
	Snapshot() State
	Tick()
}

func NewMapBoard

func NewMapBoard(s State) Board

func NewSlice1_2D

func NewSlice1_2D(s State) Board

func NewSlice1_2D_Unroll

func NewSlice1_2D_Unroll(s State) Board

func NewSlice1_Index_Unroll

func NewSlice1_Index_Unroll(s State) Board

func NewSlice1_Unroll

func NewSlice1_Unroll(s State) Board

func NewSlice2_2D

func NewSlice2_2D(s State) Board

func NewSlice2_2D_Concurrent

func NewSlice2_2D_Concurrent(s State) Board

type Point

type Point struct {
	// contains filtered or unexported fields
}

type State

type State [][]bool

func RandomState

func RandomState(width, height int, chance float64) State

func (State) Clone

func (s State) Clone() State

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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