Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change client so gameid isn't parsed
  • Loading branch information
joesweeney committed Apr 15, 2017
1 parent fe73ebc commit df763d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RmCheckersClient.java
Expand Up @@ -93,7 +93,7 @@ public class RmCheckersClient {
myClient.readAndEcho(); // opponent query myClient.readAndEcho(); // opponent query
myClient.writeMessageAndEcho(_opponent); // opponent myClient.writeMessageAndEcho(_opponent); // opponent


myClient.setGameID(myClient.readAndEcho().substring(5,10)); // game myClient.setGameID(myClient.readAndEcho()); // game
myClient.setColor(myClient.readAndEcho().substring(6,11)); // color myClient.setColor(myClient.readAndEcho().substring(6,11)); // color
System.out.println("I am playing as "+myClient.getColor()+ " in game number "+ myClient.getGameID()); System.out.println("I am playing as "+myClient.getColor()+ " in game number "+ myClient.getGameID());
readMessage = myClient.readAndEcho(); readMessage = myClient.readAndEcho();
Expand Down

0 comments on commit df763d8

Please sign in to comment.