コード例 #1
0
        public string GetGuessWords()
        {
            return(GuessWords.GetWord());

            Random        random = new Random();
            List <string> list   = new List <string>()
            {
                "glasses(眼镜)",
                "chongQing",
                "game",
                "glass",
                "car",
                "satellite(卫星)",
                "Atlantic(大西洋)",
                "Marvel(漫威)",
                "plan",
                "plane",
                "notebook",
                "lunch",
                "kangaroo(袋鼠)",
                "circular(圆形)",
                "mathematics",
                "nurse(护士)",
                "umbrella",
                "panda",
                "The lion king(狮子王)",
                "fish"
            };

            return(list[random.Next(list.Count - 1)]);
        }
コード例 #2
0
 public void RemoveWord(string word)
 {
     GuessWords.RemoveWord(word);
 }