r/dailyprogrammer • u/nottoobadguy • Feb 09 '12
[difficult] challenge #1
we all know the classic "guessing game" with higher or lower prompts. lets do a role reversal; you create a program that will guess numbers between 1-100, and respond appropriately based on whether users say that the number is too high or too low. Try to make a program that can guess your number based on user input and great code!
72
Upvotes
View all comments
Show parent comment
1
u/[deleted] Feb 10 '12
That's a fair point, though this is how obfuscated Perl usually works; see this, for example. In my defense, though, I didn't remove the newlines after the fact, I actually coded it that way (I only made it because someone posted something about Perl one-liners elsewhere in the thread).