public String getCode() {
return code;
}
};
} else if (o instanceof CompositeMove) {
CompositeMove compositeMove = (CompositeMove) o;
StringBuilder codeBuilder = new StringBuilder(compositeMove.getMoves().length * 80);
for (Move move : compositeMove.getMoves()) {
codeBuilder.append("+").append(convertToCodeAssertable(move).getCode());
}
final String code = codeBuilder.substring(1);
return new CodeAssertable() {
public String getCode() {