Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(iConnectionsAL.size() > 1 && iConnectionsAL.size() % 2 == 0){
- System.out.println("Two Connections established");
- int playerOne = iConnectionsAL.size() - 2;
- int playerTwo = iConnectionsAL.size() - 1;
- //iConnectionsAL.get(playerOne).iDataOutput.writeUTF("CONNECTED$Connected With Player Two");
- //iConnectionsAL.get(playerTwo).iDataOutput.writeUTF("CONNECTED$Connected With Player One");
- QwirkleServer QwirkleServer = new QwirkleServer(Socket, this, iConnectionsAL.get(playerOne), iConnectionsAL.get(playerTwo));
- QwirkleServer.start();
- iGameConnections.add(QwirkleServer);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement