board

package
v0.0.0-...-b9ddc22 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contemplate

func Contemplate(b Board, p player.Player, pos int)

func Insert

func Insert(p player.Player, s ...text.Style)

func MakeMove

func MakeMove(b *Board, m int, p player.Player)

func MoveTo

func MoveTo(pos, target int) int

func PrintWinner

func PrintWinner(w player.Player)

func ResetAndMove

func ResetAndMove(pos, target int, b Board) int

Types

type Board

type Board []player.Player

func (Board) Print

func (b Board) Print()

func (Board) Reset

func (b Board) Reset(p int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳