Exemple #1
0
 public Controller()
 {
     _board = new ChessBoard();
     _startLoc = new Location();
     _endLoc = new Location();
     _turn = 1;
     _selectedSquare = null;
     _promotion = 0;
 }
Exemple #2
0
 public Controller()
 {
     _board = new ChessBoard();
     _startLoc = new Location();
     _endLoc = new Location();
 }
Exemple #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;
 }
Exemple #4
0
 public Utility()
 {
     _board = new ChessBoard();
     startMove = new int[2];
     endMove = new int[2];
 }