Interface Strategy

All Known Implementing Classes:
HMIStrategy, RandomStrategy, SkipStrategy, StrategyAdapter

public interface Strategy
This interface represents a generic strategy behavior (i.e. choose an action to play by a Player). This interface allows to listens game events, see GameListener, MisdesignListener, RoundListener, and TurnListener
Author:
Belegkarnil
  • Method Summary

    Modifier and Type
    Method
    Description
    plays(Player myself, Board board, Player opponent)
    The method represents the choice made by the strategy based on the current player the use the strategy, the current board status and his opponent
    void
    register(Game game)
    This method is called before a game starts in order to allow the strategy to listen events.
    void
    This method is called after a game finishes in order to clear and the strategy stops to listen events.