durak

package
v0.0.0-...-f03492f Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager manages game

func NewGame

func NewGame(users []entity.User) (manager *Manager)

NewGame creates new game from users with default rules

func (*Manager) DoAction

func (m *Manager) DoAction(user entity.User, action entity.Action, cards ...entity.Card) error

DoAction performs action with card

Jump to

Keyboard shortcuts

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