AI Skeleton Layout

Run Settings
LanguageJava
Language Version
Run Command
class Main { public static void main(String[] args) { //2D array for the world //temporary 2D array to store the movements buildWorld(); //processWorld(); //printWorld(); } public static void buildWorld(){ //generate my world from the robotdata text file //store row/column values in the world[][] array String [][] ourWorld = new String[8][10]; for(int row=0;row<8;row++){ ourWorld[row][0]="R"; //ourWorld[row][0]=whateverYourScannerNameIs.nextThing; System.out.print(ourWorld[row][0]); //print row values for(int col=0;col<10;col++){ ourWorld[row][col]="C"; //ourWorld[row][col]=whateverYourScannerNameIs.nextThing; System.out.print(ourWorld[row][col]); //print col values } System.out.println(""); //starts new line } } public static void processWorld(){ //sort the data from buildWorld function //check for A, B, O, and X values //change those values accordingly } public static void printWorld(){ //output the robot path to the console for(int row=0;row<8;row++){ System.out.print("[]"); //print row values //code for every row for(int col=0;col<10;col++){ System.out.print("[]"); //print column values //code for every column } System.out.println(""); //starts new line } } }
OOOOOOOAOO OOOOOOXXOO OOOOOOXOOO OOOOXXXOOO OOOOXOOOOO OOOOXXXOOO OOOOOOXXOO OOOOOOOBOO
Editor Settings
Theme
Key bindings
Full width
Lines