/word-guessing-game

A word guessing game that is 100% right all the time

Primary LanguagePythonMIT LicenseMIT

Word-Guessing-Game

A word guessing game that is 100% right all the time

How it works:

Suppose the word we have in mind is 'cat' . The program will ask us

How many letters are there in your word? :

We enter 3 . The output on the program will look like:

[['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i'], ['j', 'k', 'l'], ['m', 'n', 'o'], ['p', 'q', 'r'], ['s', 't', 'u'], ['v', 'w', 'x'], ['y', 'z']]

Which group is the letter 1 of your guess (count starts from 1):

Since c in the first group, we enter 1 The output of the program will be:

Which group is the letter 2 of your guess (count starts from 1):

We enter 1 again. Then it will ask us for our 3rd group and put 7. Now, the program should print out the following lines:

a | b | c

a | b | c

s | t | u

Which column is the letter 1 of your guess (count starts from 1):

We enter 3 as c in in the 3rd column. It will ask us for our second column, we input 1. It will finally ask for our 3rd column, we input 2.

Then the program should print out:

The word you guessed is cat !

There you go, a simple word 'guessing' game implemented in python with an accuracy rate of 100%.

Fork it, Share it, improve it and have fun with it!