From 5f8fe0ae2d933114edae2e60c2cad806b3fa32e2 Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Mon, 26 Jun 2017 15:47:25 +0200 Subject: [PATCH] Added random generator for the initial letters and sending command --- .idea/workspace.xml | 722 +- .../src/com/texttwist/client/pages/Game.java | 12 +- .../src/com/texttwist/client/pages/Page.java | 7 +- .../texttwist/client/tasks/InvitePlayers.java | 2 +- .../com/texttwist/client/tasks/StartGame.java | 4 +- .../client/tasks/WaitForPlayers.java | 4 +- .../com/texttwist/client/ui/TTGameBox.java | 10 +- Commons/Commons.iml | 1 + Commons/src/models/Message.java | 1 - Server/Server.iml | 1 + Server/resources/dictionary | 58110 ++++++++++++++++ .../server/components/GameServer.java | 8 +- .../server/components/SessionsManager.java | 11 - .../server/components/ThreadProxy.java | 10 +- .../texttwist/server/models/Dictionary.java | 58 + .../com/texttwist/server/models/Match.java | 4 + .../texttwist/server/tasks/GenerateWords.java | 18 +- client_1.log | 121 + server.log | 193 + 19 files changed, 58861 insertions(+), 436 deletions(-) create mode 100644 Server/resources/dictionary create mode 100644 Server/src/com/texttwist/server/models/Dictionary.java diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e8fbf0a..dd0e092 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,21 +5,23 @@ - - - - - + + - - + + + + + + + + - - + @@ -32,7 +34,7 @@ - + com.texttwist.client.* @@ -45,64 +47,43 @@ - - + + - - - + + - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - - + + - - + + - - + + @@ -111,41 +92,66 @@ - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + - + - - + + - - - + + + + + + + + + + + + + + + + + + @@ -161,36 +167,36 @@ - GAME_STARTED - G - GAME: - GAME - GAME_ST - GAME_STA + System + System. + System.o + System.out + System.out.p + System.out.println + System.out.printl + System.out.print + 0 + 0+" + 0+ + Log + Logger. + Logger.wri + Logger.writ + Logger.write + J + JOINE + JOINED + S + START + START THE W - Wa - Wai - Wait - WaitF - WaitFor - HE - HEY - F - Futur - Future - f - future - a - addT - addTi - addTim - addTime - addTimer - TIME - TIMEO - TIMEOU - TIMEOUT - fetc + Word + Word! + T + TTGA + TTGAM + TTGAME + getWo @@ -204,9 +210,6 @@ @@ -385,8 +391,6 @@ - - @@ -523,95 +527,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -757,6 +677,8 @@ + + @@ -773,22 +695,23 @@ - - + + + + + + + - - - - - - + + @@ -1255,12 +1178,13 @@ - + + - @@ -1284,7 +1208,7 @@ - + @@ -1306,7 +1230,7 @@ - @@ -1315,23 +1239,6 @@