diff --git a/game/ai.go b/game/ai.go index 0c8515e..e4172e6 100644 --- a/game/ai.go +++ b/game/ai.go @@ -1,7 +1,7 @@ package game 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 { @@ -35,3 +35,7 @@ func score(cmd command, s State, teamID int, depth int) int { cmd2 := smartChooseHelper(s, teamID, depth) return score(cmd2, s, teamID, depth) } + +const ( + aiDepth = 4 +) diff --git a/game/game.go b/game/game.go index 39ad25b..ab84f00 100644 --- a/game/game.go +++ b/game/game.go @@ -213,5 +213,5 @@ const ( numRacers = 3 NumTeams = 8 NumLanes = NumTeams - baseCharge = 16 + baseCharge = 18 )