コード例 #1
0
 public void StartNewGame()
 {
     Game.Game game = new Game.Game();
     Games.Add(game);
     // This is somewhat complicated code to move the dealer in each game. Probably refactor later to use the dealer property.
     game.StartGame(Players.Skip(GameIndex).Concat(Players.Take(GameIndex)).ToList(), prompt);
     ScrSheet.AddGameScore(game.Picker, game.Partner, game.GetPickerTrickCount(), game.IsCracked, game.GetPickerScore());
     while (true)
     {
         var answer = prompt(PromptType.GameOver, new Dictionary <PromptData, object>
         {
             { PromptData.Game, game }
         });
         if (answer != "")
         {
             break;
         }
     }
 }