SimultaneousTurnTracker

public class SimultaneousTurnTracker implements TurnTracker

A simple class that always says it is everybody’s turn.

Author:The Condor

Fields

currentPlayers

HashSet<Integer> currentPlayers

newlyAddedPlayers

HashSet<Integer> newlyAddedPlayers

playersWhoHaveHadTurns

HashSet<Integer> playersWhoHaveHadTurns

Constructors

SimultaneousTurnTracker

public SimultaneousTurnTracker(Random unused)

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)