๐Ÿ“ฆ robzwolf / tabula

๐Ÿ“„ TurnInterface.java ยท 23 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23// package xyz.robbie.tabula;

import java.util.List;

/**
 * TurnInterface represents a series of moves which constitute a turn by a player.
 *
 * Requires a constructor with no parameters.
 *
 **/

public interface TurnInterface {

    /**
     * @param move to be added after the moves already defined in the current turn
     *
     * @throws IllegalTurnException if there are already four or more moves in the turn
     */
    void addMove(MoveInterface move) throws IllegalTurnException;

    List<MoveInterface> getMoves();
}