using System.Collections.Generic;
namespace WordGuessingGame
public static void Main()
List <WordGame> Game = new List<WordGame>{};
Game.Add(new WordGame ("OPLIEC","POLICE", "A civil force of a national government! ",(uint) Game.Count+1));
Game.Add(new WordGame("WMTORORO", "TOMORROW", "It comes in future!", (uint) Game.Count+1));
Game.Add(new WordGame("DNGRUNDOUER", "UNDERGROUND", "Its placed below the surface!", (uint) Game.Count+1));
Game.Add(new WordGame("LANIMA", "MANILA ", "A type of place here in metro manila!", (uint) Game.Count+1));
Game.Add(new WordGame("TNOCELRACAEI", "ACCELERATION", "Force of a car!", (uint) Game.Count+1));
Game.Add(new WordGame("LOSCHO", "SCHOOL", "An institution for educating children!", (uint) Game.Count+1));
Game.Add(new WordGame("NTLGENCEINIEL", "INTELLIGENCE", "Power of the brain!", (uint) Game.Count+1));
Game.Add(new WordGame("DTONRAYCII", "DICTIONARY", "A book full of words!", (uint) Game.Count+1));
Game.Add(new WordGame("REHCEAT", "TEACHER", "A person who teaches lessons!", (uint) Game.Count+1));
Game.Add(new WordGame("EAGGLAUN", "LANGUAGE", "A system of communication used by a particular community!", (uint) Game.Count+1));
foreach(WordGame k in Game)
k.Display_DisplayedWord();
Console.WriteLine("Enter your answer: ");
answer = Convert.ToString(Console.ReadLine());
answer = answer.ToUpper();
while(!k.CheckAnswear(answer, ref level) && !k.CheckGameOver(ref gameover));
Console.WriteLine("Congratulations! You completed all the words in this game.");
Console.Write("Press any key to continue . . . ");
public static void DisplayTitle()
Console.WriteLine("GOOD DAY!");
Console.WriteLine("GOODLUCK ANSWERING THE JUMBLED WORDS! ");
public WordGame(string newDisplayedWord, string newAnswearWord, string Clue_Message ,uint new_index_level)
DisplayedWord = newDisplayedWord;
AnswearWord = newAnswearWord;
index_level = new_index_level;
public void DisplayChances()
Console.WriteLine("You have {0} chances left for this word.", this.chances);
public void DisplayLevel ()
Console.WriteLine("Level: {0}", this.index_level);
public void DisplayClue()
Console.WriteLine("Clue: {0}", this.Clue);
public bool CheckAnswear(string UserAnswear, ref uint level)
if(UserAnswear==this.AnswearWord)
Console.WriteLine("Congratulations. Your answer is correct! ");
Console.WriteLine("Your answer is wrong");
public bool CheckGameOver(ref bool gameover)
Console.WriteLine("Game Over! ");
public void Display_DisplayedWord()
Console.WriteLine("Here is your Jumbled Words: {0}", this.DisplayedWord);