1.1 --- a/webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java Fri Sep 11 22:25:21 2009 +0200
1.2 +++ b/webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java Sat Sep 12 05:00:28 2009 +0200
1.3 @@ -127,7 +127,7 @@
1.4 throw new IllegalArgumentException("Unknown game " + id);
1.5 }
1.6 Move m = Move.valueOf(move);
1.7 - g.apply(player, m);
1.8 + g.apply(player, m, new Date());
1.9 try {
1.10 storeGame(g);
1.11 } catch (IOException ex) {
1.12 @@ -202,9 +202,9 @@
1.13 throw new IOException("Too much moves on line: " + line);
1.14 }
1.15 try {
1.16 - g.apply(white, Move.valueOf(moves[0]));
1.17 + g.apply(white, Move.valueOf(moves[0]), null);
1.18 if (moves.length == 2) {
1.19 - g.apply(black, Move.valueOf(moves[1]));
1.20 + g.apply(black, Move.valueOf(moves[1]), null);
1.21 }
1.22 } catch (IllegalPositionException ex) {
1.23 throw new IOException("Wrong move: " + ex.getMessage());