controller

package
v0.0.0-...-66c949c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 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 Controller

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

func NewController

func NewController() *Controller

func (*Controller) GetGameStatus

func (c *Controller) GetGameStatus() *GameStatus

func (*Controller) Move

func (c *Controller) Move(x, y int) (*GameStatus, error)

func (*Controller) Restart

func (c *Controller) Restart() *GameStatus

func (*Controller) SwitchPlayer

func (c *Controller) SwitchPlayer(isO bool) *GameStatus

type GameStatus

type GameStatus struct {
	Board      [][]int
	GameStatus string
}

Jump to

Keyboard shortcuts

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