Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BattleShips ¶
func (*BattleShips) BothReady ¶
func (g *BattleShips) BothReady() bool
BothReady returns true when both player are true
func (*BattleShips) MakeMove ¶
func (g *BattleShips) MakeMove(player string, point boardPoint) gameResponse
MakeMove is used to
func (*BattleShips) OtherPlayer ¶
func (g *BattleShips) OtherPlayer(player string) string
OtherPlayer returns the other player thean the given player
func (*BattleShips) PlayerReady ¶
func (g *BattleShips) PlayerReady(player string, sp shipPlacement) gameResponse
PlayerReady is
func (*BattleShips) StartGame ¶
func (g *BattleShips) StartGame(player string)
StartGame sets the turn to the current player
Click to show internal directories.
Click to hide internal directories.