GetStartingHand

From TRCCompSci - AQA Computer Science
Revision as of 12:50, 14 November 2017 by Admin (talk | contribs) (Created page with "<syntaxhighlight lang=csharp> private static string GetStartingHand(QueueOfTiles TileQueue, int StartHandSize) { string Hand = ""; for...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
        private static string GetStartingHand(QueueOfTiles TileQueue, int StartHandSize)
        {
            string Hand = "";
            for (int Count = 0; Count < StartHandSize; Count++)
            {
                Hand = Hand + TileQueue.Remove();
                TileQueue.Add();
            }
            return Hand;
        }