sdk

package module
v0.0.0-...-c94314e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SDKVersion    = "1.0.0"
	EngineVersion = "1.0.0-alpha"
)

TODO: Generate this file?

Functions

func LibraryVersion

func LibraryVersion() string

Types

type ErrSDKFunctionLookupFailed

type ErrSDKFunctionLookupFailed struct {
	Err error
}

func (*ErrSDKFunctionLookupFailed) Error

func (*ErrSDKFunctionLookupFailed) Unwrap

func (e *ErrSDKFunctionLookupFailed) Unwrap() error

type ErrSDKVarLookupFailed

type ErrSDKVarLookupFailed struct {
	Err error
}

func (*ErrSDKVarLookupFailed) Error

func (e *ErrSDKVarLookupFailed) Error() string

func (*ErrSDKVarLookupFailed) Unwrap

func (e *ErrSDKVarLookupFailed) Unwrap() error

type ErrSDKVersionMismatch

type ErrSDKVersionMismatch struct {
	Expected string
	Actual   string
}

func (*ErrSDKVersionMismatch) Error

func (e *ErrSDKVersionMismatch) Error() string

type Feature

type Feature uint64

type Game

type Game interface {
	History() []hived.Move
	Move(a, b hived.Coordinate) error
	Over() bool
	Place(p hived.Piece, c hived.Coordinate) error
	Winner() (hived.Player, error)
}

func NewGame

func NewGame(features []Feature) (Game, error)

Jump to

Keyboard shortcuts

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