Difference between revisions of "GetStartingHand"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "<syntaxhighlight lang=csharp> private static string GetStartingHand(QueueOfTiles TileQueue, int StartHandSize) { string Hand = ""; for...")
(No difference)

Revision as of 12:50, 14 November 2017

        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;
        }