1213141516171819202122
public class Test { public static void main(String[] args) { PlayingField pf = new PlayingField(4,4); pf.initialize(2); System.out.println(pf); pf.up(); System.out.println(pf); int[][] matrix = new int[][] { new int[] { 0, 0, 2, 0},
252627282930313233
new int[] { 0, 0, 0, 2} }; PlayingField pf1 = new PlayingField(matrix); System.out.println(pf1); pf1.up(); System.out.println(pf1); } }
949596979899100101102103104
dirs++; } } PlayingField pup = ((PlayingField)pf.makeCopy()); numMoves = pup.up(); if(numMoves>0){ if(rootlvl == level){ R3 = new RunTree(pup, level); R3.start(); }else{