About Logical number game Bulls&Cows
Bulls and Cows (also known as Cows and Bulls or Pigs and Bulls or Bulls and Cleots) is an old codebreaking mind or paper and pencil game for two or more players, predating the similar commercially marketed board game Mastermind.
It is a game with numbers or words that may date back a century or more. It is played by two opponents.
On a sheet of paper, the players each write a 4digit secret number. The digits must be all different.
Then, in turn, the players try to guess their opponent's number who gives the number of matches.
If the matching digits are in their right positions, they are "bulls", if in different positions, they are "cows".
The first one to reveal the other's secret number wins the game.
As the "first one to try" has a logical advantage, on every game the "first" player changes.
In some places, the winner of the previous game will play "second". Sometimes, if the "first" player finds the number, the "second" has one more move to make and if he also succeeds, the result is even.
The game may also be played by two teams of 2–3 players. The players of every team discuss before making their move, much like in chess.
A computer program moo, written in 1970 by J. M. Grochow at MIT in the PL/I computer language for the Multics operating system, was amongst the first Bulls and Cows computer implementations, inspired by a similar program written by Frank King in 1968 and running on the Cambridge University mainframe.
Because the game has simple rules, while it is difficult and entertaining, there are many computer variants;
it is often included in telephones and PDAs.
Commended game to your attention generate and store a non-recurring 4 - digits number.
You can guess the number by input a 4 non-recurring digits in the input field, The digits of number must be unique, you must also fill all 4 cells.
The program analyzes it and shows for answer 2 digits - first digit mean how many digits is guessed in generally (cows), second digits means the matching digits are in their right positions (bulls).
In case of complete match your query to program's secret number program show a message of congratulations and show the final result - YOU are WINNER!
Never Miss An Update!
Follow Android Blip on Facebook / Google+