Class Game


  • public class Game
    extends Object
    A Game object defines how an Episode may be created. A Game object may either consists of a rule set + a predefined board, or of a rule set + the procedure for creating a random board. In the latter case, the procedure for creating a random board may include a random number generator and the parameters of the distribution from which a random board may be drawn (e.g. a color set and the the number of colors, and the same for shapes).
    • Field Detail

      • initialBoard

        public Board initialBoard
        Only if fixed; null if random
      • randomObjCnt

        public int randomObjCnt
        If starting with a random board, the number of pieces to use. Only used if initialBoard==null
      • nShapes

        public int nShapes
        If starting with a random board, the number of pieces to use. Only used if initialBoard==null
      • nColors

        public int nColors
        If starting with a random board, the number of pieces to use. Only used if initialBoard==null
      • crowded

        public boolean crowded
    • Method Detail

      • getCrowded

        public boolean getCrowded()
      • setCrowded

        public void setCrowded​(boolean _crowded)