Package edu.wisc.game.sql
Class RandomGameGenerator
- java.lang.Object
-
- edu.wisc.game.sql.GameGenerator
-
- edu.wisc.game.sql.RandomGameGenerator
-
public class RandomGameGenerator extends GameGenerator
This class generates random games (with the same rule set and randomly created initial boards) based on the provided parameter range specifications
-
-
Constructor Summary
Constructors Constructor Description RandomGameGenerator(File ruleSetFile, int[] _nPiecesRange, int[] _nShapesRange, int[] _nColorsRange, Piece.Shape[] _allShapes, Piece.Color[] _allColors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Game
nextGame()
Generates a game with a random initial board, in accordance with this generator's parameters-
Methods inherited from class edu.wisc.game.sql.GameGenerator
advance, getRules, mkGameGenerator
-
-
-
-
Constructor Detail
-
RandomGameGenerator
public RandomGameGenerator(File ruleSetFile, int[] _nPiecesRange, int[] _nShapesRange, int[] _nColorsRange, Piece.Shape[] _allShapes, Piece.Color[] _allColors) throws IOException, RuleParseException
- Throws:
IOException
RuleParseException
-
-
Method Detail
-
nextGame
public Game nextGame()
Generates a game with a random initial board, in accordance with this generator's parameters- Specified by:
nextGame
in classGameGenerator
-
-