From c3b6d652b47e0f5dad29536441f038a5fb6ab6d0 Mon Sep 17 00:00:00 2001 From: Luke Meyers Date: Sat, 8 Feb 2020 19:37:28 -0800 Subject: [PATCH] bump up AI depth, battery charge --- game/ai.go | 6 +++++- game/game.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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 )