Home | History | Annotate | Download | only in codewalk

Lines Matching refs:strategies

58 	strategies := []strategy{strategy0, strategy1}
63 action := strategies[currentPlayer](s)
72 // roundRobin simulates a series of games between every pair of strategies.
73 func roundRobin(strategies []strategy) ([]int, int) {
74 wins := make([]int, len(strategies))
75 for i := 0; i < len(strategies); i++ {
76 for j := i + 1; j < len(strategies); j++ {
78 winner := play(strategies[i], strategies[j])
87 gamesPerStrategy := gamesPerSeries * (len(strategies) - 1) // no self play
111 strategies := make([]strategy, win)
112 for k := range strategies {
113 strategies[k] = stayAtK(k + 1)
115 wins, games := roundRobin(strategies)
117 for k := range strategies {