public void SetMain()
 {
     Main = this;
 }
Esempio n. 2
0
 public bool move(int Dx, int Dy, Piece p, Piece captureOrCastlePiece, Chessboard cb)
 {
     return(p.move(Dx, Dy, captureOrCastlePiece, cb));
 }
Esempio n. 3
0
 public Game()
 {
     this.users      = new Users();
     this.chessboard = MountChessboard();
 }
Esempio n. 4
0
        public List <Position> getPossibleMoves(Position from)
        {
            Figure SelectedFigure = Chessboard.GetFigureFromPosition(from);

            return(SelectedFigure.PossibleMoves(Chessboard));
        }