private static void GetWin(Player player) { player.Win(); MessageBox.Show($"Победил игрок:{player.Name}"); BoardModel.GetStartBoard(); GetBoard(); WpfDrawer.GrawCanvas(); }
private void Button_Click(object sender, RoutedEventArgs e) { if (CheckName(namePlayerOne.Text) && CheckName(namePlayerTwo.Text)) { BoardModel.PlayerOne = new Player(namePlayerOne.Text); BoardModel.PlayerTwo = new Player(namePlayerTwo.Text); Board.GameIsOpen = true; Board.StepPlayer = true; BoardModel.GetStartBoard(); var game = new GameShow(); Close(); game.Show(); } }