Click here to Skip to main content
15,898,374 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;

namespace PROJECT_TWO_graphic_user_interface
{
    public partial class Form1 : Form
    {
        Stopwatch time = new Stopwatch();
        int nu, attempt, Score, chances;
        public string[] bEGINNERwords = new string[5];
        string[] corresponding = new string[5];
        public static int TotalScore, count;

        //worditem class the words to be used by the player
        public class WordItem
        {
            public string m_text;
            public bool m_used;
            public WordItem(string text) { m_text = text; m_used = false; }
        }

        //create a dictionary for the words to be used

        //words (see Anagrams example)

        //check out FileData.cs still from Anagrams

        public Form1()
        {
            InitializeComponent();

            timer1.Enabled = false;
            timer1.Interval = 100;

            //from here on, initialise all the controls on the form

        }

        private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OPTIONS obj = new OPTIONS();
            obj.Show();
        }

        private void highScoreToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HIGH_SCORE obj = new HIGH_SCORE();
            obj.Show();
        }

        private void aboutWordJumbleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            About_Word_Jumble obj = new About_Word_Jumble();
            obj.Show();
        }

        private void eXITToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void txtPLAYER_NAME_TextChanged(object sender, EventArgs e)
        {
            if (txtPLAYER_NAME.Text == "")
            {
                MessageBox.Show("Enter your name!!");
                txtPLAYER_NAME.Focus();
            }
        }


        //button to submit a word after the text fields have been filled
        private void btnSUBMIT_Click(object sender, EventArgs e)
        {
            //get the typed word
            string thisWord = txtJumbled_Word.Text;

            //when the text filed is empty
            if (thisWord == "")
            {
                MessageBox.Show("Guess the word!");
                txtAddWord.Focus();
            }
            //else find the word in the appropriate wordItem
        }
    }
}

//the game has to have a dictionary of words to read from when the player the new game toolstripmenuitem
//when the game begins, a jumbled word has to come up on display,then the player types their guess in the 'guess word' textbox, then after they hit hit the 'submit' button to to check his luck from the wordlist.txt file
//while all this is happening in the game, the points for 1st attempt = 10,2nd attempt = 7 and 3rd = 4,and the time it takes to guess the word is also recorded
//the attempts are also recorded in the 'chances' textbox!
///HELP!! P.S.:I AM TOTALLY NEW TO C# 2010
Posted
Updated 4-Sep-11 0:25am
v2
Comments
Wendelius 4-Sep-11 6:26am    
Pre tags added.
Abhinav S 4-Sep-11 6:41am    
So where are you stuck?

Since this is obviously a homework, what have you done already?

We don't do your homework for you. The best way to learn is to try yourself and if you get stuck on something specific, then ask with a targeted question.

Even though it may feel difficult in the beginning, putting time and effort in learning at this point is going to reward you greatly later on.
 
Share this answer
 
There's no question here. My advice is to use the debugger if you're having problems, and once you've identified a problem that you can't fix, come back asnd ask about it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900