示例#1
0
 public Board()
 {
     squares = new BoxSquares(this);
     figures = new BoxFigures(this);
     promots = new BoxPromotions(this);
     game    = new Game();
     // chess = new Chess("rnbq1k1r/pp1Pbppp/2p5/8/2B5/8/PPP1NpPP/RNBQK2R w QK - 1 8");
     dad = new DragAndDrop(PickObject, DropObject);
 }
示例#2
0
    public Board()
    {
        squares = new BoxSquares(this);
        figures = new BoxFigures(this);
        promots = new BoxPromots(this);

        client          = new Client();
        chess           = new Chess();
        dad             = new DragAndDrop(PickObject, DropObject);
        onPromotionMove = "";
    }