The game of BULLS and COWS

Play Instructions Examples About

 


Play

Bulls Cows Java Applet

 

 


Instructions

This is a very interesting piece of game to test the ability for remembering and smartness of manipulation of numbers.

The game goes as follows. 

The player has to guess the 4 digit random number generated by the computer in 10 given chances. The player has to give input as a number between 0 and 9999 to get closer to the guessed number.

The computer will give the player some clues to reach that number.

B for Bull if at least one of the digit entered by the player is present in the number to be guessed and is exactly at the same
position. e.g. if the number generated by the computer is 4620 and player enters 3921 then the result is 1B which means the digit 2 is present in the number to be guessed and is at the right position.i.e. the 3rd one

C for Cow if at least one of the digit entered by the player is present in the number to be guessed but is not at the same position. e.g. if the number generated by the computer is 6754 and player gives 1273 then the result is 1C which means the digit 7 is present in the number to be guessed but is not at the right position. i.e. 7 is in 2nd position where as in the number given by the player it is at 3rd position

Important Note:  NO two digits are repeated in the number generated.

The player has to go for 4B 0C to guess the number perfectly.
In case of any doubts pl.  go through the examples section

Hey fighter enjoy the game and let me know.

Top


Examples

Number Entered Number to be guessed Result Reason
9476 7304 0B 2C '7' & '4'
2460 2980 2B 0C '2' & '0'
3591 4593 2B 1C '5' & '9' B & '3' C
5656 4159 1B 1C 5 is entered twice
2130 567 1C 0B leading '0' assumed
8947 8947 4B 0C perfect guess

 

Top


About

Game of Bulls and Cows
Samir Bongale

Mail: samirbb@hotmail.com

Top



FastCounter by LinkExchange