1.1 --- a/webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java Sun Aug 30 14:37:47 2009 +0200
1.2 +++ b/webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java Fri Sep 11 20:32:15 2009 +0200
1.3 @@ -188,7 +188,7 @@
1.4 throw new IOException("Missing white and black identification in " + f);
1.5 }
1.6 if (g == null) {
1.7 - GameId id = new GameId(f.getName(), white, black, new Date(f.lastModified()), GameResult.IN_PROGRESS);
1.8 + GameId id = new GameId(f.getName(), white, black, new Date(f.lastModified()), GameStatus.whiteMove);
1.9 g = new Game(id);
1.10 }
1.11 if (line.equals("finish")) {
1.12 @@ -222,7 +222,7 @@
1.13 PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(f)));
1.14 pw.println("# white: " + g.getId().getWhite());
1.15 pw.println("# black: " + g.getId().getBlack());
1.16 - pw.println("# status: " + g.getId().getResult());
1.17 + pw.println("# status: " + g.getId().getStatus());
1.18 int cnt = 0;
1.19 for (Move m : g.getMoves()) {
1.20 pw.print(m.toString());