text

package
v0.0.0-...-6b51b5a Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(w io.Writer, f *engine.Four)

Dump displays the state of the grid on the given writer.

Types

type Runtime

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

Runtime is a basic text based client for connect four.

func (*Runtime) Close

func (r *Runtime) Close() error

Close is a no op.

func (*Runtime) Init

func (r *Runtime) Init(four *engine.Four) error

Init setup the connect four game.

func (*Runtime) Run

func (r *Runtime) Run() error

Run starts the game loop.

Jump to

Keyboard shortcuts

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