Skip to content

Get cubeType

Akshath Raghav edited this page Jun 28, 2021 · 1 revision

cubeState()

--> returns if its holding 3x3 or 2x2

String[] temp2 = {"RRRR", "GGGG", "OOOO", "BBBB", "WWWW", "YYYY"};
Cubot cube = new Cubot(temp2) ;
System.out.println(cube.cubeType());
String[] temp  = {"RRRRRRRRR", "GGGGGGGGG", "OOOOOOOOO", "BBBBBBBBB", "WWWWWWWWW", "YYYYYYYYY"};
cube = new Cubot(temp) ;
System.out.println(cube.cubeType());

example

Clone this wiki locally