CHALLENGE rule randomly generates challenges.

This commit is contained in:
Woody Folsom
2012-03-18 16:17:04 -04:00
parent c2465821f3
commit 862ba2aa31
5 changed files with 75 additions and 7 deletions

View File

@@ -83,6 +83,9 @@ public class LevelGrammarFactory {
}
String remainder = clause.substring(rBraceIndex);
if (remainder.startsWith("}, ")) {
remainder = remainder.substring(3);
}
List<String> rhsClauseStrings = new ArrayList<String>();
if (remainder.contains("(")) {
int nextLeftIndex = -1;