Package edu.wisc.game.rest
Class GameServiceHtml
- java.lang.Object
-
- edu.wisc.game.rest.GameService
-
- edu.wisc.game.rest.GameServiceHtml
-
@Path("/GameServiceHtml") public class GameServiceHtml extends GameServiceThe HTML wrapper for the First Batch calls, to allow for the "HTML Play".
-
-
Constructor Summary
Constructors Constructor Description GameServiceHtml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringmoveHtml(String episodeId, int x, int y, int bx, int by, int cnt)StringnewEpisodeHtml(String rules, int pieces, int shapes, int colors, String boardName)-
Methods inherited from class edu.wisc.game.rest.GameService
display, getBoard, getBoard1, getBoard2, getHello1, getHello2, getPiece1, getPiece2, listInitialBoards, listRules, move, newEpisode, saveBoard, startTrial, writeFile
-
-
-
-
Method Detail
-
newEpisodeHtml
@POST @Path("/newEpisodeHtml") @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public String newEpisodeHtml(@FormParam("rules") String rules, @DefaultValue("0") @FormParam("pieces") int pieces, @DefaultValue("0") @FormParam("shapes") int shapes, @DefaultValue("0") @FormParam("colors") int colors, @DefaultValue("null") @FormParam("board") String boardName)
-
-