ai

package
Version: v0.0.0-...-eb763d7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AI

type AI struct {
	// Grid is 4x4 grid.
	Grid *grid.Grid
	// Active is true represent need to select a direction to move, else represent computer need fill a number("2" or "4") into grid.
	Active bool
}

func (*AI) Search

func (a *AI) Search() grid.Direction

Search method compute each could move direction score result by expect search algorithm

Source Files

Jump to

Keyboard shortcuts

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