Skip to content

amjith/Cows_and_Bulls-Game

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Installation:

There is no installation, you just need python interpreter to run the program.

python cab.py

What is Cows and Bulls Game?

'Cows and Bulls' is a text based word game. Your goal is to guess the 4 letter word. You have eight attempts to guess.

For each guess the computer will say how close your guess is to the answer.

Bull - Number of characters in your guess that exist in the answer and match the location.

Cow - Number of characters that exist in the answer but don't match the exact spot.

eg:

AnswerGuessCowsBulls
saltcard01
saltmats21
saltmalt03
saltsalt04

Game Output:

$ ./cab.py
1 Input a Word: card
cow,bull 0 1
2 Input a Word: mats
cow,bull 2 1
3 Input a Word: malt
cow,bull 0 3
4 Input a Word: salt
cow,bull 0 4
Victory!!
Wow! that only took like 4 attempts.

About

Text based word game Cows and Bulls written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages