-
Notifications
You must be signed in to change notification settings - Fork 1
What is Cubot2 and Cubot3
Akshath Raghav edited this page Jun 28, 2021
·
1 revision
- Cubot has-a Cubot2 and Cubot3. Depending on your input, Cubot will hold Cubot3 or Cubot3
- However, Cubot3 is the Cubot object for only 3x3, and the same goes for Cubot2
- The main difference between them is that Cubot(2/3) can directly use R(), Rdash(), etc. while Cubot needs stringalg()
- Another difference is the constructor. The constructor for Cubot(2/3) will not function for no input as the Cubot
String[] temp = {"RRRRRRRRR", "GGGGGGGGG", "OOOOOOOOO", "BBBBBBBBB", "WWWWWWWWW", "YYYYYYYYY"}; // for 3x3
Cubot3 cube3 = new Cubot(temp) ;
cube3.R() ;
String[] temp2 = {"RRRR", "GGGG", "OOOO", "BBBB", "WWWW", "YYYY"};
Cubot2 cube2 = new Cubot2(temp2) ;
cube2.R() ;
import java.util.ArrayList;
public class Cubot2 extends Checker2 {
public Cubot2(String[] s) throws IllegalArgumentException { super(s) ;}
public boolean isSolved() {}
public String toString() {}
public String[][][][] getCubeArr() {}
public String[][][][] getSolvedCube() {}
public ArrayList<String> compareToSolved() {}
public String stringAlg(String s) {}
public String getScramble(int n, boolean check) {}
public String reverseAlg(String s, boolean check ) {}
public String indexString() {}
public String solve() {}
public String[] cubeToArr() {}
public Cube2 getCube() {}
}
import java.util.ArrayList ;
public class Cubot3 extends Checker3 {
public Cubot3(String[] s) throws IllegalArgumentException { super(s) ;}
public String solve() {}
public boolean isSolved() {}
public String toString() {}
public String[][][][] getCubeArr() {}
public String[][][][] getSolvedCube() {}
public ArrayList<String> compareToSolved() {}
public String stringAlg(String s) {}
public String getScramble(int n, boolean check) {}
public String reverseAlg(String s, boolean check ) {}
public String indexString() {}
public Cube3 getCube() {}
public String[] cubeToArr() {}
}
Read on to see Cubot in action