public Game() { this.Board = new Board(this); this.Sides = new Side[] { new Side(this), new Side(this) }; this.Sides[0].sideType = SideType.Bottom; this.Sides[1].sideType = SideType.Top; this.InitPieces(); this.InitBoard(); this.WhosTurn = this.WhosFirst; }
/// <summary> /// Instantiates the board object and sets the board table's initial state /// </summary> private void InitBoard() { Board board = new Board(this); board.UpdatePiecePositionOnBoard(); }