Submission for this contest.
Game "CowBullWord" is like game "Cows and Bulls", only words are used here instead of numbers. You are allowed to name only nouns in the nominative case of a singular and only in unusual cases in plural. The quantity of letters in the thought word is known. "Bulls" - letters on their places and "Cows" - letters not on the place.
Stages of guessing a word. The first stage of guessing a word. There are no repeating letters in each word. It is necessary to watch total number of the guessed letters. For words of 3, 4 - letters this stage can be finished, having on 1 guessed letter less. For words of more than 4 letters the quantity of the guessed letters should be equal to length of a word. The second stage. It is used for words consisting of more than 4 letters. The more letters you exclude, the easier to reveal used letters. In the beginning of a stage it is better not to mix the letters from more, than two words named at the first stage. Thus it is necessary to consider and "bulls", i.e. position of letters. The third stage. It is necessary to place letters on a place. Necessity and efficiency of this stage depends on the information about "bulls", especially without "cows". The fourth stage. Try to guess the thought word.
Game field is divided into 4 parts. In the left bottom corner there is the keyboard with a control window of an entered word. To enter a word it is possible with the help of a mouse, clicking by the left button on letters, or directly in a control window of an entered word from the keyboard of a computer. If to click on the letter of the keyboard with the right button of a mouse, it is possible to mark it with color. While clicking on a big button " Input " or a key "Enter" of PC keyboard a word from a control window is given to "Bull" for reflection, the results of which are fixed on a board. There are also additional buttons on the keyboard, in its bottom part. Button " Dump " - clears a control window of an entered word. Button " Face " - deletes 1 letter from a control window of an entered word. Button " Surrender " - means your defeat, "Bull" will inform you the thought word. It is possible to click also on the number showing the length of the thought word to change it (from 3 up to 9). In the right bottom corner: The designer of a word – use it at your own discretion. For example, place there the guessed letters. Vocabulary – It is possible to peep a lexicon of "Bull" and enter a word directly from it. Level – It is rather adjustment of parameters of a game for less or more complex variant.
pre> Parameter Vocabulary Guessing BABY - with sifting shown KINDERGARTEN - with sifting not shown SCHOOLBOY - accessible shown STUDENT - not accessible shown PROFY - accessible not shown MASTER - not accessible not shown
There is a pasture with furious "Bull" in the left top corner. This "Bull" carries out a role of the leader. It thinks of a word and answers, how many letters you have guessed, how many of them are bulls and how many cows. There is a black board of the report in the right top corner. "Bulls'" answers are fixed on it. It is impossible to change anything in the report. If you cannot solve the thought word for a long time, a strip of scrolling appears on a board. By sifting the vocabulary you make "Bull" itself guess a word. By the way, enter the word You, and "Bul", after thinking, removes unnecessary words from the vocabulary.
The colors of the keys on the keyboard
If you click with the right button of a mouse on the letter it will be painted in
- black, if a letter isn't named;
- blue if the letter is named;
- red, if there is no letter in the word;
- green, if there is letter in the word.
Sometimes "Bull" itself marks for you by these colors the letters of the keyboard. If you click with the right button of a mouse not on the letter, it is possible either to mark in red all not named letters till now (supposing, that they are not present in a word), or to colour keyboard in black (having got confused or not trusting to yourselves).
You can download it here: http://www.deforex2....om/contest/Guess.zip