/*
 * @topic T00605 Baseball demo application
 * @brief main driver program
 */
package baseball;

public class BaseballApp {

    public static void main(String[] args) {
		BaseballPlayer[] players = new BaseballPlayer[2];
		//BaseballPlayer player1 = new Catcher(
		players[ 0 ] = new Catcher(
				3,      //int playerNumber,
				"Joe",  //String playerName,
				57,     //int numberAtBats,
				12,     //int numberHits
				8,  	//int attemptedSteals
				3		//int stolenBases
			);
		//BaseballPlayer player2 = new Pitcher(
		players[ 1 ] = new Pitcher(
				24,      //int playerNumber,
				"Gary",  //String playerName,
				35,     //int numberAtBats,
				19      //int numberHits
			);
		//System.out.println(player1.computeBattingAverage());
		//System.out.println(player1.stolenBaseAverage());
		//System.out.println(player2.computeBattingAverage());

		//System.out.println(player1.rankPlayer());
		//System.out.println(player2.rankPlayer());
		System.out.println(players[ 0 ].rankPlayer());
		System.out.println(players[ 1 ].rankPlayer());
    }//main
}//class BaseballApp