public Game5Form(azbukaGame game) { InitializeComponent(); ag = game; difficulty = 1; currentQuestion = null; prevQuestions = new Stack <SingleWordQuestion>(); player = new SoundPlayer(); rnd = new Random(); failNum = 0; score = 0; }
public Game1Form(azbukaGame game) { InitializeComponent(); ag = game; player = new SoundPlayer(); tm = new Timer(); failNum = 0; tm.Tick += new EventHandler(tmHandler); tm.Interval = 10; tm.Start(); //getNextQuest(); }
public Game3Form(azbukaGame game) { InitializeComponent(); ag = game; difficulty = 1; rnd = new Random(); images = new Image[NUM_IMAGES]; for (int i = 0; i < NUM_IMAGES; i++) { images[i] = null; } failNum = 0; score = 0; player = new SoundPlayer(); prevQuestions = new Stack <MultiWordQuestion>(); currentQuestion = null; }
public SingleWordQuestion(azbukaGame azbuka, int diff, int numLetters, Random r) { int minLen = 0; int maxLen = 20; switch (diff) { case 3: minLen = 8; maxLen = 20; break; case 2: minLen = 5; maxLen = 7; break; default: minLen = 1; maxLen = 4; break; } word = azbuka.getRandomWords(1, minLen, maxLen)[0]; if (r == null) { keyLetterPosition = 0; } else { keyLetterPosition = r.Next(1, word.wordUpperCase.Length); } answerLetter = word.wordUpperCase[keyLetterPosition]; candidateLetters = azbuka.getRandomLetters(numLetters, answerLetter); answerIndex = candidateLetters.IndexOf(answerLetter); }
public SelectForm() { InitializeComponent(); ag = new azbukaGame(); }