Adding a system to compare two AI implementations (AIPlayerBaka and AIPlayerBakaB). This can be used to make sure a change to the AI is not making the AI weaker, for example.
This commit is contained in:
@@ -1729,7 +1729,10 @@ MTGCardInstance * AIPlayerBaka::FindCardToPlay(ManaCost * pMana, const char * ty
|
||||
|
||||
void AIPlayerBaka::initTimer()
|
||||
{
|
||||
timer = 0.1f;
|
||||
if (mFastTimerMode)
|
||||
timer = 0;
|
||||
else
|
||||
timer = 0.1f;
|
||||
}
|
||||
|
||||
int AIPlayerBaka::computeActions()
|
||||
@@ -2243,12 +2246,16 @@ int AIPlayerBaka::Act(float dt)
|
||||
|
||||
oldGamePhase = currentGamePhase;
|
||||
|
||||
timer -= dt;
|
||||
if (mFastTimerMode)
|
||||
timer -= 1;
|
||||
else
|
||||
timer -= dt;
|
||||
if (timer > 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
initTimer();
|
||||
|
||||
if (combatDamages())
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user