public bool Play(model.Game a_game, view.IView a_view) { m_game = a_game; m_view = a_view; m_game.RegisterNewObserver(this); update(); if (a_game.IsGameOver()) { m_view.DisplayGameOver(a_game.IsDealerWinner()); } int input = m_view.GetInput(); if (input == view.SwedishView.NewGame_c) { a_game.NewGame(); } else if (input == view.SwedishView.Hit_c) { a_game.Hit(); } else if (input == view.SwedishView.Stand_c) { a_game.Stand(); } return(input != view.SwedishView.Quit_c); }