public abstract class AbstractReferee extends Object
| Constructor and Description |
|---|
AbstractReferee() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
gameTurn(int turn)
Called on the computation of each turn of the game.
|
abstract void |
init()
Called on startup, this method exists to create the initial state of the game, according to the given input.
|
void |
onEnd()
Optional.
|
public abstract void init()
Called on startup, this method exists to create the initial state of the game, according to the given input.
public abstract void gameTurn(int turn)
A typical game turn:
Player active on this turn.executed.turn - which turn of the game is currently being computed.public void onEnd()
Optional.
This method is called once the final turn of the game is computed.Typically, this method is used to set the players' final scores according to the final state of the game.
Copyright © 2018. All rights reserved.