diff --git a/src/fr/iut_fbleau/raw_api_body/entity/Plateau.java b/src/fr/iut_fbleau/raw_api_body/entity/Plateau.java index c5beff8..cdb9c91 100644 --- a/src/fr/iut_fbleau/raw_api_body/entity/Plateau.java +++ b/src/fr/iut_fbleau/raw_api_body/entity/Plateau.java @@ -10,6 +10,8 @@ public interface Plateau { /** * Return the current player * + * @throws NullPointerException if the game is over + * * @return the player */ Player getPlayer(); @@ -29,29 +31,36 @@ public interface Plateau { * - if the move is a draw : 0 * - if its a defeat move : -1 * + * @throws NullPointerException if game is not over + * * @return the result */ Result getResult(); /** - * Gives previous played plies + * List next legals moves * + * @throws NullPointerException if the game is over * @return the iterator */ Iterator givePlies(); /** - * Play a ply + * Play a future ply + * + * @throws IllegalArgumentException if the given ply is coming from wrong game * * @param ply the ply */ - void doo(Ply ply); + void doPly(Ply ply); /** - * Removed a ply. + * Removed a previous ply. + * + * @throws IllegalStateException if not allowed to come back on previous statement * * @param ply the ply */ - void undo(Ply ply); + void undoPly(Ply ply); }