Exemplo n.º 1
0
        private void frmPlayGuesstheWord_Load(object sender, EventArgs e)
        {
            TextFile tf = new TextFile();
            tf.getTextFile();

            words = tf.text.Split(' ', '\n');

            lblName.Text = "User: "******"Score: " + score.ToString();

            if (words.ElementAt(indexNum) == "")
            {
                indexNum++;
            }

            hiddenWord = words.ElementAt(indexNum);

            writeNewWord(hiddenWord);
        }
Exemplo n.º 2
0
        private void PlayConundrum_Load(object sender, EventArgs e)
        {
            TextFile tf = new TextFile();
            tf.getTextFile();

            words = tf.text.Split(' ', '\n');

            lblPlayer.Text = "User: "******"Score: " + score.ToString();

            if (words.ElementAt(indexNum) == "")
            {
                indexNum++;
            }

            hiddenWord = words.ElementAt(indexNum);

            lblWord.Text = shuffle(hiddenWord.ToCharArray(), shuffleTimes);
        }