#player picks random number
#computer tries to guess
print 'Pick number between 1 and 10, including 10'
import random
x = random.randrange(11)
print 'Is your number', x, '?'
y = ''
while True:
if y != 'Correct':
y = raw_input('Input whether your guessed number is \'Correct\', \'Higher\', \'Lower\' \n')
if y == 'Lower':
x -= 1
print 'Is your number', x, '?'
elif y == 'Higher':
x += 1
print 'Is your number', x, '?'
elif y == 'Correct':
print 'Good game'
break
raw_input('\n\nPress \'Enter\' to exit')
# your cock goes here
I3BsYXllciBwaWNrcyByYW5kb20gbnVtYmVyCiNjb21wdXRlciB0cmllcyB0byBndWVzcwoKcHJpbnQgJ1BpY2sgbnVtYmVyIGJldHdlZW4gMSBhbmQgMTAsIGluY2x1ZGluZyAxMCcKaW1wb3J0IHJhbmRvbQp4ID0gcmFuZG9tLnJhbmRyYW5nZSgxMSkKcHJpbnQgJ0lzIHlvdXIgbnVtYmVyJywgeCwgJz8nCnkgPSAnJwp3aGlsZSBUcnVlOgoJaWYgeSAhPSAnQ29ycmVjdCc6CgkJeSA9IHJhd19pbnB1dCgnSW5wdXQgd2hldGhlciB5b3VyIGd1ZXNzZWQgbnVtYmVyIGlzIFwnQ29ycmVjdFwnLCBcJ0hpZ2hlclwnLCBcJ0xvd2VyXCcgXG4nKQoJaWYgeSA9PSAnTG93ZXInOgoJCXggLT0gMQoJCXByaW50ICdJcyB5b3VyIG51bWJlcicsIHgsICc/JwoJZWxpZiB5ID09ICdIaWdoZXInOgoJCXggKz0gMQoJCXByaW50ICdJcyB5b3VyIG51bWJlcicsIHgsICc/JwoJZWxpZiB5ID09ICdDb3JyZWN0JzoKCQlwcmludCAnR29vZCBnYW1lJwkJCgkJYnJlYWsKcmF3X2lucHV0KCdcblxuUHJlc3MgXCdFbnRlclwnIHRvIGV4aXQnKQoJICMgeW91ciBjb2NrIGdvZXMgaGVyZQ==
Pick number between 1 and 10, including 10
Is your number 2 ?
Input whether your guessed number is 'Correct', 'Higher', 'Lower'
Traceback (most recent call last):
File "prog.py", line 11, in <module>
EOFError: EOF when reading a line