SequentialTurnTracker

public class SequentialTurnTracker implements TurnTracker

A class that gives priority to a single player at a time. This is a cycle with order randomly generated each episode.

Author:The Condor

Constructors

SequentialTurnTracker

public SequentialTurnTracker(Random r)

Methods

addPlayer

public void addPlayer(Integer playerNumber)

hasHadTurnBefore

public boolean hasHadTurnBefore(int playerNumber)

isAgentsTurn

public boolean isAgentsTurn(Agent agent)

isPlayersTurn

public boolean isPlayersTurn(int playerNumber)

newEpisodeAndStep

public void newEpisodeAndStep()

newStep

public void newStep()

removePlayer

public void removePlayer(Integer playerNumber)