textscrubble

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Challenge

func Challenge(g *game.Game, rng *rand.Rand)

func DrawBoard

func DrawBoard(b *board.Board)

func DrawGame

func DrawGame(g *game.Game, players []Player)

func DrawRack

func DrawRack(r tile.Rack)

func DrawStats

func DrawStats(g *game.Game, players []Player)

func ExchangeTiles

func ExchangeTiles(letters string, g *game.Game, rng *rand.Rand)

func LettersToPlacements

func LettersToPlacements(rowDir, colDir, row, col int, letters string, rack tile.Rack, b *board.Board) play.Tiles

func LettersToRackTiles

func LettersToRackTiles(letters string, rack tile.Rack) (tiles []tile.Tile)

func Pass

func Pass(g *game.Game)

func PlayTiles

func PlayTiles(dir, row, col, letters string, g *game.Game)

func ShuffleRack

func ShuffleRack(g *game.Game, rng *rand.Rand)

Types

type Player

type Player struct {
	Name string
}

Jump to

Keyboard shortcuts

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