CodeFactor

Bulls and Cows Game

Bulls and Cows is a logic game for guessing the number invented by the computer. After each move, the computer gives the number of matches. If a number of the conjecture is contained in the secret number and is in the right place, it is BULL, if it is in a different place, it is COW.

link

Getting Started

Download the game from here.

Prerequisites

How to Play

  1. The computer generates a random 4-digit number.
  2. The player enters a 4-digit number.
  3. The computer responds with the number of BULLS and COWS.
  4. Repeat steps 2-3 until the player guesses the correct number or enters "iGiveUp" to admit defeat.
  5. The player is given the option to use a cheat code to reveal the secret number, which is "ShowMeTheMilk".

Built With

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details.