Project

General

Profile

« Previous | Next » 

Revision f0336037

Added by Leszek Koltunski about 4 years ago

Make the Solver state more abstract.

View differences:

src/main/java/org/distorted/objects/RubikCube.java
225 225
    {
226 226
    return 1.0f;
227 227
    }
228

  
229
///////////////////////////////////////////////////////////////////////////////////////////////////
230

  
231
  public String retString()
232
    {
233
    String ret="UUUUUUUUURRRRRRRRRFFFFFFFFFDDDDDDDDDLLLLLLLLLBBBBBBBBB";
234
/*
235
		int color;
236
		int F=retColor(FRONT , 1,1);
237
		int B=retColor(BACK  , 1,1);
238
		int L=retColor(LEFT  , 1,1);
239
		int R=retColor(RIGHT , 1,1);
240
		int U=retColor(TOP   , 1,1);
241
		int D=retColor(BOTTOM, 1,1);
242

  
243
		for(int face in {TOP,RIGHT,FRONT,BOTTOM,LEFT,BACK} )
244
		  for(int row=0; row<mSize; row++)
245
			  for(int col=0; col<mSize; col++)
246
			    {
247
				  color = retColor(TOP,col,row);
248

  
249
				  if(color==F) ret+="F";
250
				  if(color==B) ret+="B";
251
				  if(color==L) ret+="L";
252
				  if(color==R) ret+="R";
253
				  if(color==U) ret+="U";
254
				  if(color==D) ret+="D";
255
			    }
256
*/
257
    return ret;
258
    }
228 259
}

Also available in: Unified diff