Class Game


  • public class Game
    extends Object
    • 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
    • Constructor Detail

      • Game

        public Game​(RuleSet _rules,
                    Board _initialBoard)
      • Game

        public Game​(RuleSet _rules,
                    int _randomObjCnt,
                    int _nShapes,
                    int _nColors,
                    Piece.Shape[] _allShapes,
                    Piece.Color[] _allColors)
        A game with shape-and-color objects used as game pieces
      • Game

        public Game​(RuleSet _rules,
                    int _randomObjCnt,
                    String[] _allImages)
        A game with image-and-properties-based objects used as game pieces