private void PlayTheGame(WarCardGame war) { war.StartNewGame(); while (!war.EndOfGame()) { war.NextCard(); } // TODO: display who has won the game... }
private void Start() { var player1 = new Player("John"); var player2 = new Player("Emma"); // create game and play it var war = new WarCardGame(player1, player2); PlayTheGame(war); Console.ReadKey(); }