Below is my psuedo code. I need some serious help putting all of this together. Any critiques would be greatly appreciated!!!!!
For now, I need this code written in main, and then eventually split into methods.
public class MineSweeper { public static void main(String[] args) { //declare variables System.out.println("Find the empty squares and avoid the mines."); //declare variables int i; int j=0; int t2=0; String[][] gameBoard = new String[9][9]; * bool error */ //load board //loadboard(board) int col, row; for (row= 0; row<9; row++) { for (col =0; col<9; col++) { board[row][col] = "*"; } } //print board //int col, row; for (col=0; col<9; col++) //print " " + col + "|" for (row+0; row<9; row++) { //print row # for (col=0; col<9; col++) { //print " " + board[row][col] + "|" } //print "\n" } //end print board //turn while(t2<81){ do{ //print "enter column" //get column number //print "enter row" if board[row][col] !="*" error = true } while(error) board[row][col]="8"; //endturn //int col, row; for(col=0; col<9: col++) //print " " + col +"|" for( row=0; row<9; row++) { //print row# for (col=0; col<9; col++) { //print " " + board [row][col] + "|"; } //print "\n" } //print board //end print t2=turn(board); t2++; } } void loadboard(string board[][9]) { int col, row: for (row=0;row<9;row++) {for (col+0; col<9;col++) { board[row][col]="*"; } } } void print board (string board[][9]) { int col, row; for (col=0;col<9; col++) //print " " + col + "|" for (row=0; row<9; row++) { //print row# for (col=0; col<9: col++) { //print " " + board [row][col]+ "|"; } //print "\n" } } int turn ( string board){ bool error do{ //print "enter column" //get column number //print "enter row" if board[row][col] != "*" error = true } while (error) board [row][col]="8"; } }