game

package
v0.0.0-...-23d7152 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	GameID         int64
	GameSpace      [3][3]gameObject
	PlayerXTurn    bool
	EmptyPositions []string
	GameOver       bool
	PlayerXWinner  bool
	PlayerOWinner  bool
}

func (*Game) BoardIsFull

func (g *Game) BoardIsFull() bool

func (*Game) CheckWinner

func (g *Game) CheckWinner()

func (*Game) NewGame

func (g *Game) NewGame()

func (*Game) Turn

func (g *Game) Turn(i, j int) (err error)

Jump to

Keyboard shortcuts

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