Class Game

java.lang.Object
  extended by Game

public class Game
extends java.lang.Object


Field Summary
 MutableBinaryTree currentQ
          Mutable Binary Trees that keep track of the current and previous pointers
 MutableBinaryTree previousQ
          Mutable Binary Trees that keep track of the current and previous pointers
 
Constructor Summary
Game()
          a constructor that allows the main method to reach other methods without making them static
 
Method Summary
static void main(java.lang.String[] args)
          main method that starts the game according to user input and interacts with TreeMaker to get the binary tree and write it back once the game is over.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentQ

public MutableBinaryTree currentQ
Mutable Binary Trees that keep track of the current and previous pointers


previousQ

public MutableBinaryTree previousQ
Mutable Binary Trees that keep track of the current and previous pointers

Constructor Detail

Game

public Game()
a constructor that allows the main method to reach other methods without making them static

Method Detail

main

public static void main(java.lang.String[] args)
main method that starts the game according to user input and interacts with TreeMaker to get the binary tree and write it back once the game is over.

Parameters:
args - The name of the file provided by the user. it is optional.