arena

package
v0.0.0-...-4fb7718 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var STARTING_BOTTOM_LEFT = []api.Coord{{X: 1, Y: 1}, {X: 1, Y: 1}, {X: 1, Y: 1}}
View Source
var STARTING_BOTTOM_RIGHT = []api.Coord{{X: 9, Y: 1}, {X: 9, Y: 1}, {X: 9, Y: 1}}
View Source
var STARTING_TOP_LEFT = []api.Coord{{X: 1, Y: 9}, {X: 1, Y: 9}, {X: 1, Y: 9}}
View Source
var STARTING_TOP_RIGHT = []api.Coord{{X: 9, Y: 9}, {X: 9, Y: 9}, {X: 9, Y: 9}}

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Id      string
	GetMove AgentMoveFn
}

type AgentMoveFn

type AgentMoveFn func(*bitboard.BitBoard, string) bitboard.SnakeMoveSet

type Arena

type Arena struct {
	Agents  []Agent
	Rounds  int
	Results []RoundResult
	// contains filtered or unexported fields
}

func (*Arena) Initialize

func (a *Arena) Initialize()

func (*Arena) Run

func (a *Arena) Run()

type RoundResult

type RoundResult struct {
	Id         int
	Winner     string
	TotalTurns int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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