Esempio n. 1
0
File: Game.cs Progetto: kflu/cnchess
 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;
 }
Esempio n. 2
0
File: Game.cs Progetto: kflu/cnchess
 /// <summary>
 /// Instantiates the board object and sets the board table's initial state
 /// </summary>
 private void InitBoard()
 {
     Board board = new Board(this);
     board.UpdatePiecePositionOnBoard();
 }