ai

package
v0.0.0-...-e4f1321 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: GPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Simpleton

type Simpleton struct{}

Simpleton will just try to colonize as much as possible by always sending half the units on each colonized node to the nearest uncolonized node.

func (Simpleton) Orders

func (self Simpleton) Orders(logger common.Logger, req ai.OrderRequest) (result state.Orders)

Orders will return orders for all nodes in s where me has more than 2 units, that moves half the units to the nearest node in s where me has no units.

Jump to

Keyboard shortcuts

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