bump up AI depth, battery charge

This commit is contained in:
Luke Meyers 2020-02-08 19:37:28 -08:00
parent f230a0b995
commit c3b6d652b4
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
package game package game
func smartChooseCommand(s State, teamID int) command { func smartChooseCommand(s State, teamID int) command {
return smartChooseHelper(s, teamID, 2) return smartChooseHelper(s, teamID, aiDepth)
} }
func smartChooseHelper(s State, teamID int, depth int) command { func smartChooseHelper(s State, teamID int, depth int) command {
@ -35,3 +35,7 @@ func score(cmd command, s State, teamID int, depth int) int {
cmd2 := smartChooseHelper(s, teamID, depth) cmd2 := smartChooseHelper(s, teamID, depth)
return score(cmd2, s, teamID, depth) return score(cmd2, s, teamID, depth)
} }
const (
aiDepth = 4
)

View File

@ -213,5 +213,5 @@ const (
numRacers = 3 numRacers = 3
NumTeams = 8 NumTeams = 8
NumLanes = NumTeams NumLanes = NumTeams
baseCharge = 16 baseCharge = 18
) )