Initial Commit
[Projects.git] / ai / numbers.py
blob106ddd5bbef4d518803c58cb512259225d64de87
1 #!/usr/bin/env python
3 from ai import ai
4 import grammar
5 import random
7 player=ai("profile1",grammar)
9 #a=random.randint(1, 100)
11 a=13
13 while True:
14 o=player.output()
15 if o==c:
16 player.input(grammar.good)
17 elif o>a:
18 player.input(">")
19 elif o<a:
20 player.input("<")