stockfish

package
v0.0.0-...-ae06d96 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Move

func Move(game *chess.Game, lvl Level) (*chess.Move, error)

Move returns a move from the Stockfish chess engine. lvl is the skill level of the engine and must be [0,20]. execPath should be the path to stockfish directory. An error is returned if there an issue communicating with the stockfish executable.

func SetExecPath

func SetExecPath(path string)

Types

type Level

type Level int
const (
	Level00 Level = iota
	Level01
	Level02
	Level03
	Level04
	Level05
	Level06
	Level07
	Level08
	Level09
	Level10
	Level11
	Level12
	Level13
	Level14
	Level15
	Level16
	Level17
	Level18
	Level19
	Level20
)

Jump to

Keyboard shortcuts

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