Hello, I'm trying to get this program to test three different game boards and put them in three separate files. I have everything working except the RandomLocation method, which I'm struggling to figure out what tod do with.
package boardgametester; import games.board.*; import games.utilities.*; public class BoardGameTester { /** * @param args the command line arguments */ public static void main(String[] args) { RandomLocation rl = new RandomLocation(); Board ticTacToe = new Board(3,3); ticTacToe.setCell(Mark.CROSS, Mark.NOUGHT, rl.getRandom(3), rl.getRandom(3)); System.out.println("TIC TAC TOE BOARD"); System.out.println(ticTacToe.toString()); Board connectFour = new Board(6,7); connectFour.setCell(Mark.YELLOW, Mark.RED, rl.getRandom(6), rl.getRandom(7)); System.out.println("CONNECT FOUR BOARD"); System.out.println(connectFour.toString()); Board mastermind = new Board(5,8); mastermind.setCell(Mark.YELLOW, Mark.RED, Mark.GREEN, Mark.BLUE, Mark.MAGENTA, Mark.ORANGE, rl.getRandom(5), rl.getRandom(8)); System.out.println("MASTERMIND BOARD"); System.out.println(connectFour.toString()); FileManager.writeToFileAsync(connectFour.toString(), "c4.txt"); FileManager.writeToFileAsync(ticTacToe.toString(), "ttt.txt"); FileManager.writeToFileAsync(mastermind.toString(), "mm.txt"); } }