Skip to content

Samyukta-b/Cows-and-Bulls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Python code

This is a game of Cows and Bulls developed using Python (Tkinter library) for Words & Numbers.

Instructions

In this game you will have to guess the four-letter word or four-digit number.

  • You will be given two hints - Cow and Bull.
  • 'Cow': number of correct letters/digits in the wrong position.
  • 'Bull': number of correct letter/digits in the correct position.
  • The guess word should not have repeated letters.

Enchant library

pip install pyenchant
pip list # to check if library is present
# then
import enchant
enchant.Dict("en_US") # This initializes a dictionary object for the English (US) dictionary.

Enchant is a module in python which is used to check the spelling of a word, to check if a word exists in dictionary or not.

About

A game of Cows and Bulls developed using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages