Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DrawEvent ¶
func NewDrawEvent ¶
type InputEvent ¶
func NewInputEvent ¶
func NewInputEvent(move Move) InputEvent
type OutputHandler ¶
type PlayerInputHandler ¶
type PlayerInputHandler interface {
RegisterInputEvents(context.Context, chan InputEvent)
}
type Terminal ¶
Terminal Definition - Matches the IO Handler Interface
func NewTerminal ¶
func (*Terminal) RegisterDrawEvents ¶
func (*Terminal) RegisterInputEvents ¶
func (t *Terminal) RegisterInputEvents(ctx context.Context, playerInput chan InputEvent)
Click to show internal directories.
Click to hide internal directories.