Exemplo n.º 1
0
 public Controller()
 {
     _board = new ChessBoard();
     _startLoc = new Location();
     _endLoc = new Location();
     _turn = 1;
     _selectedSquare = null;
     _promotion = 0;
 }
Exemplo n.º 2
0
 public Controller()
 {
     _board = new ChessBoard();
     _startLoc = new Location();
     _endLoc = new Location();
 }
Exemplo n.º 3
0
 public void ResetGame()
 {
     _board = new ChessBoard();
     g.Children.Clear();
     inCheck = false;
     CreateBoard(g, l, l2);
     _startLoc = new Location();
     _endLoc = new Location();
     ChangeTurn();
     _startSquare = null;
     _selectedSquare = null;
 }
Exemplo n.º 4
0
 public Utility()
 {
     _board = new ChessBoard();
     startMove = new int[2];
     endMove = new int[2];
 }