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
Click to show internal directories.
Click to hide internal directories.