hanabi

package module
v0.0.0-...-480f00f Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: MIT Imports: 16 Imported by: 0

README

hanabi

Hanabi board game implementation in realtime!

Documentation

Index

Constants

View Source
const ColorCount = 5
View Source
const NumberMax = 5
View Source
const NumberMin = 1

Variables

This section is empty.

Functions

func NoCache

func NoCache(h http.Handler) http.Handler

func RunServerAndGame

func RunServerAndGame()

func Shuffle

func Shuffle(slice interface{})

Types

type BaseObject

type BaseObject struct {
	Id            int
	X, Y          int
	Height, Width int
	// contains filtered or unexported fields
}

type Card

type Card struct {
	Id           int
	Color        CardColor // Color == 0 means unknown color (to client)
	Number       int       // Number == 0 means unknown number
	ColorHinted  bool
	NumberHinted bool
}

func (*Card) EncodeMsgpack

func (p *Card) EncodeMsgpack(enc *msgpack.Encoder) error

type CardColor

type CardColor int

type Game

type Game struct {
	StatusLine atomic.Value // string displayed in web interface
	// contains filtered or unexported fields
}

type Player

type Player struct {
	Name string

	Cards []*Card
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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