示例#1
0
文件: Game.cs 项目: djericj/Uno
 private Card Dequeue()
 {
     if (GameDeck.Count == 0)
     {
         ReloadFromDiscard();
     }
     if (GameDeck.Count == 0)
     {
         Ended = true;
         Log("END", $"Game deck ran out of cards.");
         return(null);
     }
     else
     {
         return(GameDeck.Dequeue());
     }
 }