Beispiel #1
0
 //Contructor
 public LuongGiaBanCo(ChessBoard cls)
 {
     height = cls.Row;
     width = cls.Column;
     GiaTri = new int[height, width];
     ResetBoard();
 }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();
            
            banco = new ChessBoard(this, grdBanCo);
            banco.DrawGomokuBoard();

            banco.Option.KindOfChess = ChessStyle.Chess3;

            banco.Option.GamePlay = LuatChoi.International;
            banco.Option.WhoPlayWith = Player.Human;
            grdBanCo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(banco.grdBanCo_MouseDown);
            banco.WinEvent += new ChessBoard.WinEventHander(Win);

            
            if (txtMessages.Text == "")
            {
                txtMessages.Text = "Type your message here...";
            }
        }