Skip to content
Permalink
Browse files

Change client so gameid isn't parsed

  • Loading branch information
joesweeney committed Apr 15, 2017
1 parent fe73ebc commit df763d85936d08567d599f66403fde94c80a9403
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/RmCheckersClient.java
@@ -93,7 +93,7 @@ public static void main(String[] argv){
myClient.readAndEcho(); // opponent query
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
System.out.println("I am playing as "+myClient.getColor()+ " in game number "+ myClient.getGameID());
readMessage = myClient.readAndEcho();

0 comments on commit df763d8

Please sign in to comment.
You can’t perform that action at this time.