package com.puzzletimer.scrambles;

import java.util.ArrayList;

public class Scramble {
	public ArrayList<Move> moves;
	
	public Scramble(ArrayList<Move> moves) {
		this.moves = moves;
	}
	
	public String toString() {
		StringBuilder sb = new StringBuilder();

		for (int i = 0; i < moves.size() - 1; i++) {
			sb.append(moves.get(i) + "  ");
		}
		sb.append(moves.get(moves.size() - 1));

		return sb.toString();
	}
}

@@ -360,16 +360,48 @@
 %0A%09%09%7D%0D%0A%09%09
+%0D%0A%09%09if (moves.size() %3E 0) %7B%0D%0A%09%09%09
 sb.appen
@@ -429,24 +429,31 @@
 e() - 1));%0D%0A
+%09%09%7D%0D%0A%09%09
 %0D%0A%09%09return s

Support for zero-length scrambles