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: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Randomizer

type Randomizer struct{}

Randomizer is a randomly moving AI implementation.

func (Randomizer) Orders

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

Orders will return orders randomly moving up to 20% of all troops in each occupied node along randomly chosen edges of that node.

Jump to

Keyboard shortcuts

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