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

            return(SelectedFigure.PossibleMoves(Chessboard));
        }