/bulls-cows-react-game

4️⃣ digit number guessing game 🎮

Primary LanguageJavaScript

Bulls and Cows is an old code breaking mind game.
The goal of this game is to guess a 4-digit number within the least number of attempts possible.
With every guess, you will get a feedback indicating how many Bulls and Cows you got with the guess.
A Bull means: one of the digits is correct, and is also at the right place.
A Cow means: one of the digits is a right number, but not at the right place.
For example, given that the answer is 0130, a guess of 3610 will receive 1 Bull 2 Cows. 1 Bull is 0, 2 Cows are 1 and 3.

This project was bootstrapped with Create React App.

Demo

The app can be seen in action here.

Run Locally

  1. Clone this repository and go into its src folder.
  2. Run npm install
  3. Run npm start
  4. Go to http://localhost:3000 to view the app