Question: Create an API document for the ConsoleUI class of your Omok console app by writing Javadoc comments for the class, fields, methods, and constructors. Submit
Create an API document for the ConsoleUI class of your Omok console app by writing Javadoc comments for the class, fields, methods, and constructors. Submit the source code file and screenshots showing the created API document, i.e., a Web browser viewing the HTML document.
ConsoleUI class:
public class ConsoleUI { private Scanner input; private int boardSize; public ConsoleUI(int boardSize) { Scanner input = new Scanner(System.in); board = new Board(boardSize); } public void GameMode() { System.out.println("Select game mode:"); System.out.println(" Human game"); System.out.println(" Strategy game"); int choice = input.nextInt(); switch (choice) { case 1: playHumanGame(); break; case 2: playStrategyGame(); break; default: System.out.println("Error. Please choose between the two games."); GameMode(); break; } } public Game() { Player player1, player2; System.out.println("Player 1 name:"); String name1 = input.next(); System.out.println("Player 2 name:"); String name2 = input; } } Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
