DisplayTilesInHand

From TRCCompSci - AQA Computer Science
Revision as of 11:28, 14 November 2017 by MattPeet (talk | contribs) (Created page with "<syntaxhighlight lang="C#"> private static void DisplayTilesInHand(string PlayerTiles) { Console.WriteLine(); Console.WriteLine("Your current h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
private static void DisplayTilesInHand(string PlayerTiles)
        {
            Console.WriteLine();
            Console.WriteLine("Your current hand:" + PlayerTiles);
        }

 Choice = GetChoice();
                if (Choice == "1")
                {
                    DisplayTileValues(TileDictionary, AllowedWords);
                }
                else if (Choice == "4")
                {
                    TileQueue.Show();
                }
                else if (Choice == "7")
                {
                    DisplayTilesInHand(PlayerTiles);
                }

The method that displays the tile in a players hand takes the string PlayerTiles and Writes it in the program. The player can do this at any time during their turn by pressing "7" on their turn.