Revision 373fa45f
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/states/RubikStateSolution.java | ||
---|---|---|
250 | 250 |
|
251 | 251 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
252 | 252 |
|
253 |
void setupMoves(final RubikActivity act, int numMoves, String moves)
|
|
253 |
void setupMoves(final RubikActivity act, String moves) |
|
254 | 254 |
{ |
255 |
android.util.Log.e("solution", "got "+numMoves+" moves: "+moves); |
|
256 |
|
|
257 | 255 |
mCanRotate= true; |
258 | 256 |
mCurrMove = 0; |
259 |
mNumMoves = numMoves;
|
|
257 |
mNumMoves = moves.length()/4;
|
|
260 | 258 |
mMoves = new int[mNumMoves][3]; |
261 | 259 |
|
262 |
RubikPattern.parseMoves(mMoves,numMoves,moves);
|
|
260 |
RubikPattern.parseMoves(mMoves,mNumMoves,moves);
|
|
263 | 261 |
|
264 | 262 |
mMovesText.setText(act.getString(R.string.mo_placeholder,mCurrMove,mNumMoves)); |
265 | 263 |
} |
Also available in: Unified diff
Progress making the Solver state more abstract.