// This version of Game.java used for HW J8 import java.util.*; import java.awt.*; public class Game { public static final int DEFAULT_NUMBER_OF_SHIPS = 5; public static final int BOARD_X_COORDINATE = 15; public static final int BOARD_Y_COORDINATE = 15; public static Random rand = new Random(); public static void main(String args[]) { System.out.println("Test of the Human and AI classes"); Human player1 = new Human(); //AI player1 = new AI(0); AI player2 = new AI(1); // insert testing code for the various methods in AI // Testing of the getNextShot() method for ( int i = 1; i < 10; i++ ) { Point p1 = player1.getNextShot(); System.out.println ("Round " + i + ": player 1 (" + player1.getName() + ") shot at " + p1); Point p2 = player2.getNextShot(); System.out.println ("Round " + i + ": player 2 (" + player2.getName() + ") shot at " + p2); } } }