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;
public class WordItem
{
public string m_text;
public bool m_used;
public WordItem(string text) { m_text = text; m_used = false; }
}
public Form1()
{
InitializeComponent();
timer1.Enabled = false;
timer1.Interval = 100;
}
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();
}
}
private void btnSUBMIT_Click(object sender, EventArgs e)
{
string thisWord = txtJumbled_Word.Text;
if (thisWord == "")
{
MessageBox.Show("Guess the word!");
txtAddWord.Focus();
}
}
}
}
//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