Uses of Class
edu.wisc.game.parser.RuleParseException
| Package | Description |
|---|---|
| edu.wisc.game.engine |
Top-level Game Server code
|
| edu.wisc.game.parser |
Tools for parsing rule set descriptions
|
| edu.wisc.game.sql |
Persistent data structures
|
| edu.wisc.game.tools |
-
Uses of RuleParseException in edu.wisc.game.engine
Methods in edu.wisc.game.engine that throw RuleParseException Modifier and Type Method Description String[]AutomaticRuleGenerator. getColorNames()String[]AutomaticRuleGenerator. getShapeNames()static voidAutomaticRuleGenerator. main(String[] argv)static voidCaptive. main(String[] argv)A complete CGS session.static voidConvertRules. main(String[] argv)Reads Kevin's file such as Games.21-38.json, and converts it to Game Server rule set files.static voidRuleSet. main(String[] argv)static voidStalemateTester. main(String[] argv)static RuleSetAllRuleSets. obtain(String ruleSetName)static RuleSetAllRuleSets. read(File f)Vector<String>AutomaticRuleGenerator. varReport()Constructors in edu.wisc.game.engine that throw RuleParseException Constructor Description AutomaticRuleGenerator(Long seed, ParaSet _para)Ensures that the para table has the default (legacy) values for "colors" and "shapes", if none are supplied in the CSV file.RuleSet(String ruleText)RuleSet(String[] rr)Creates a RuleSet based on the content of a rule set file.RuleSet(String[] rr, AutomaticRuleGenerator agen)RuleSet(String ruleText, AutomaticRuleGenerator agen) -
Uses of RuleParseException in edu.wisc.game.parser
Methods in edu.wisc.game.parser that throw RuleParseException Modifier and Type Method Description ExpressionExpression.Mapper. apply(Expression ex)static voidToken. main(String[] argv)ExpressionExpression.AdditiveExpression. map(Expression.Mapper mapper)Applies the mapper to each componentExpression.BracketListExpression.BracketList. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.ColonExpression. map(Expression.Mapper mapper)ExpressionExpression.ComparisonExpression. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.Id. map(Expression.Mapper mapper)ExpressionExpression. map(Expression.Mapper mapper)ExpressionExpression.MultiplicativeExpression. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.NegationExpression. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.Num. map(Expression.Mapper mapper)Expression.ParenListExpression.ParenList. map(Expression.Mapper mapper)Applies the mapper to each componentExpressionExpression.RangeExpression. map(Expression.Mapper mapper)ExpressionExpression.Star. map(Expression.Mapper mapper)static Expression.BracketListExpression. mkBracketList(Vector<Token> tokens)static ExpressionExpression. mkCounterOrAtom(Vector<Token> tokens)Extracts one of the sections of a rule line: either the leading counter (int or star), or one of the atoms (paren lists that may include arithmetic expressions or stars)static Expression.ArithmeticExpressionExpression. mkLongestArithmeticExpression(Vector<Token> tokens)Creates the longest ArithmeticExpression starting at the beginning of the tokens array.static Expression.ArithmeticExpressionExpression. mkLongestE1(Vector<Token> tokens)E1 := (E) | Id.Id | Id | Num | -Num | [E,E,...]static Expression.ArithmeticExpressionExpression. mkLongestE2(Vector<Token> tokens)E2 := E1 | !E2static Expression.ArithmeticExpressionExpression. mkLongestE3(Vector<Token> tokens)E3 := E2 | E2*E2...static Expression.ArithmeticExpressionExpression. mkLongestE4(Vector<Token> tokens)static Expression.ArithmeticExpressionExpression. mkLongestE5(Vector<Token> tokens)static Expression.RangeExpressionExpression. mkRangeExpression(Vector<Token> tokens)If the given sequence of tokens starts with a range expression, extracts it; otherwise, returns nullstatic Vector<Token>Token. tokenize(String x)Constructors in edu.wisc.game.parser that throw RuleParseException Constructor Description Id(String s) -
Uses of RuleParseException in edu.wisc.game.sql
Methods in edu.wisc.game.sql that throw RuleParseException Modifier and Type Method Description static RandomGameGeneratorRandomGameGenerator. buildFromArgv(RandomRG _random, File f, ParseConfig ht, String[] argv, int ja)Builds a RandomGameGenerator from command-line argumentsEpisodeInfoPlayerInfo. episodeToDo()Returns the currently unfinished last episode to be resumed, or a new episode (in the current series or the next series, as the case may be), or null if this player has finished with all series.voidPlayerInfo. initSeries(TrialList trialList)This is usesd when a player is first registered and a PlayerInfo object is first created.static voidRandomGameGenerator. main(String[] argv)Creates a bunch of random boards, from which one can later select those matching some additional criteria, and use them in an experiment plan with predefined boards.static GameGeneratorGameGenerator. mkGameGenerator(RandomRG _random, ParaSet para)Creates a GameGenerator based on a parameter set.voidPlayerInfo. restoreTransientFields()This method should be called after restoring the object from the SQL database, in order to re-create some of the necessary non-persistent structures.Constructors in edu.wisc.game.sql that throw RuleParseException Constructor Description RandomGameGenerator(RandomRG _random, File ruleSetFile, int[] _nPiecesRange, int[] _nShapesRange, int[] _nColorsRange, Piece.Shape[] _allShapes, Piece.Color[] _allColors)RandomImageGameGenerator(RandomRG _random, File ruleSetFile, int[] _nPiecesRange, ImageObject.Generator _imageGenerator) -
Uses of RuleParseException in edu.wisc.game.tools
Methods in edu.wisc.game.tools that throw RuleParseException Modifier and Type Method Description protected voidAnalyzeTranscripts. analyzePlayerRecord(String playerId, Vector<edu.wisc.game.tools.EpisodeHandle> v)Reads one player's transcript, and prepares a complete report for that player.protected voidAnalyzeTranscripts. saveAnyData(Vector<TranscriptManager.ReadTranscriptData.Entry[]> section, Vector<edu.wisc.game.tools.EpisodeHandle> includedEpisodes)Saves the data for a single (player, ruleSet) pair.protected voidMwByHuman. saveAnyData(Vector<TranscriptManager.ReadTranscriptData.Entry[]> section, Vector<edu.wisc.game.tools.EpisodeHandle> includedEpisodes)Saves the data (the summary of a series) for a single (player, ruleSet) pair.