Module pacai.core.timeoutTeam

Functions

def createTeam(firstIndex,
secondIndex,
isRed,
first='pacai.agents.capture.timeout.TimeoutAgent',
second='pacai.agents.capture.timeout.TimeoutAgent')
Expand source code
def createTeam(firstIndex, secondIndex, isRed,
        first = 'pacai.agents.capture.timeout.TimeoutAgent',
        second = 'pacai.agents.capture.timeout.TimeoutAgent'):
    """
    A team for testing timeouts.
    """

    firstAgent = reflection.qualifiedImport(first)
    secondAgent = reflection.qualifiedImport(second)

    return [
        firstAgent(firstIndex),
        secondAgent(secondIndex),
    ]

A team for testing timeouts.