Documentation ¶ Index ¶ type AI func (a *AI) Search() grid.Direction 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 ¶ View all Source files ai.go Click to show internal directories. Click to hide internal directories.