model

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 2 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 struct {
	// contains filtered or unexported fields
}

func NewBoard

func NewBoard(size int, e chan<- common.Event, opt Opt) *Board

func (*Board) Click

func (b *Board) Click(x, y int) func()

func (*Board) Len

func (b *Board) Len() int

func (*Board) String

func (b *Board) String() string

func (*Board) Value

func (b *Board) Value(x, y int) string

func (*Board) Winner

func (b *Board) Winner() (string, bool)

type Opt

type Opt struct {
	Debug bool
}

Jump to

Keyboard shortcuts

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