spaceinmemory

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() space.Space

func NewWithMark

func NewWithMark(g game.ID, m *player.Mark) space.Space

Types

type Space

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

Space implements the Space interface in memory

func (*Space) Mark

func (s *Space) Mark(ctx context.Context, game game.ID) (*player.Mark, error)

Mark returns the mark applied to this space, or nil if there is none

func (*Space) SetMark

func (s *Space) SetMark(ctx context.Context, game game.ID, m player.Mark) error

SetMark applies the specified mark to this space.

Jump to

Keyboard shortcuts

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