This python program lets you set the limits within which you have to take a guess and ask you how many tries you want to make.
This concept was taken from the book "Automate the Boring Stuff with Python", however I have tweeked a bit to make it more user friendly