Skip to content

A simple game of Bulls and Cows where the user guesses at a randomly generated number.

Notifications You must be signed in to change notification settings

sawinter1/BullsAndCows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BullsAndCows

  1. Instructions are printed.
  2. The user plays a game of Bulls and Cows.
  3. The user is given the option to play another game or end the program.
  4. Steps 2-3 repeat until the user chooses to end the program.

Rules for Bulls and Cows

  1. The computer randomly generates a 4-digit number with no repeating digits.
  2. The user guesses at the number (similarly entering a 4-digit number with no repeating digits).
  3. The user is infomred how many bulls (correct digit in the same place as the digit in the secret number) and cows (correct digit in a different place from the digit in the secret number) they have.
  4. Steps 2-3 are repeated until the user has guessed the secret number.

About

A simple game of Bulls and Cows where the user guesses at a randomly generated number.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages