game

package
v0.0.0-...-48e53a6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 17 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 interface {
	GetPlayerO() Player
	GetPlayerX() Player
	NextTurn(pos Position) Game
	GetBoard() board.Board
	GetAIProcess() ai.AIProcess
	CheckWinnerInGrid(tiles grid.TileGrid) Player
	GetCurrentPlayer() Player

	StateChannel() chan State
	OnClick()

	Resume()
	Pause()
	IsPaused() bool
	Reset() Game

	Draw(screen *ebiten.Image) Game

	IsOnline() bool
	InitOnline(dbGame DBGame, begin bool)
	ExitOnline()
}

func NewGame

func NewGame(playerO Player, playerX Player, board board.Board) Game

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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