import java.util.Scanner;
public class PseudoWarDriver
{
  public static void main (String [] args)
  {
    Scanner keyboard;
	 String name1, name2;
	 int rounds;
    PseudoWar war;
	 String results;
	
	 keyboard = new Scanner (System.in);
    System.out.println 
	   (" This program will play a game of pseudowar with 2 players");

	 System.out.println
	   (" Please enter the name of the first player ");
	 name1 = keyboard.nextLine();
	 	 
	 System.out.println
	   (" Please enter the name of the second player ");
	 name2 = keyboard.nextLine();
	 
	 System.out.println
	   (" Please tell me how many rounds you would like to play ");
	 rounds = keyboard.nextInt();

    System.out.println 
	        (" your players are " + name1 + " and " + name2 
			  + " and they will play " + rounds + " rounds.");	
    System.out.println ();			  
			  
// war = new PseudoWar ();			   
	 war = new PseudoWar (name1, name2, rounds);
	 war.startGame();
	 results = war.getFinalResult();
	 System.out.println ();
	 System.out.println (results);
	} // end main
} // end PseudoWarDriver