Beispiel #1
0
        private void PvCmode()
        {
            ResetBoard();
            ResetButton();

            btnPvC.Foreground = new SolidColorBrush(Colors.Yellow);
            BanCoViewModel.PvC();
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            SetButtonClick();

            BanCoViewModel = new BanCoViewModel();
            BanCoViewModel.CurrentBanCo.OnPlayerAt  += CurrentBanCo_OnPlayerAt;
            BanCoViewModel.CurrentBanCo.OnPlayerWin += CurrentBanCo_OnPlayerWin;
            BanCoViewModel.CurrentBanCo.OnUndo      += CurrentBanCo_OnUndo;
            BanCoViewModel.CurrentBanCo.OnRedo      += CurrentBanCo_OnRedo;

            BanCoViewModel.PvC();
            DrawBoard(Settings.Default.BOARD_SIZE);
        }
Beispiel #3
0
 private void PvCmode()
 {
     ResetBoard();
     BanCoViewModel.PvC();
 }