Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * A method for getting the total number of turns played
- * in a given TTT game from the input file.
- * @param DataInputStream dis, the current DIS being used
- * @return int turns, the total number of turns played.
- */
- public int getTurns(DataInputStream dis) {
- dis = this.dis;
- try{
- dis.readChar();
- turns++;
- } catch (IOException e) {
- System.out.println("Nothing to read here, folks, move along.");
- }
- return turns;
- }
Add Comment
Please, Sign In to add comment