cmpr

package
v0.0.0-...-db2e5f8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: BSD-2-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAll

func RunAll(matches []MatchSetup, outDir string)

RunAll runs all sets of matches given as argument

Types

type MatchSetup

type MatchSetup struct {
	// contains filtered or unexported fields
}

MatchSetup contains information needed for comparing two players

func CreateMatch

func CreateMatch(bs, ng int, p1, p2 hexplayer.PlayerType, t1, t2 int, patternFile string, ei1, ei2 interface{}) MatchSetup

CreateMatch sets up the comparison of two players

bs: boardsize
ng: number of games to be played (actual number of games is twice that much,
	because roles are switched after ng games)
p1, p2: player types
t1, t2: time limits for both players
patternFile: file with patterns in hex grid

ei1, ei1: additional parameters for players

func (MatchSetup) Run

func (ms MatchSetup) Run(outDir string, players [2]hexplayer.HexPlayer) ([2][2]int, [2][2][2]float64)

Run runs a set of matches between two players

func (MatchSetup) String

func (ms MatchSetup) String() string

Jump to

Keyboard shortcuts

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