1.1 --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Tue Sep 08 15:29:15 2009 +0200
1.2 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Thu Sep 10 23:19:40 2009 +0200
1.3 @@ -148,6 +148,10 @@
1.4 }
1.5 WebResource wr = base.path("games").path(id).queryParam("player", user);
1.6 try {
1.7 + if (type.equals("resign")) {
1.8 + wr.queryParam("move", "RESIGN").put();
1.9 + return board(id);
1.10 + }
1.11 if (type.equals("fence")) {
1.12 wr.queryParam("move", direction.charAt(0) + column + row).put();
1.13 return board(id);