Compare commits

..

2 Commits

2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[project] [project]
name = "markov" name = "markov"
version = "0.0.1" version = "0.1.0"
description = "" description = ""
authors = [ authors = [
{name = "ElectronixTM"} {name = "ElectronixTM"}

View File

@ -15,7 +15,10 @@ def interactve_mode(rulebook: Rulebook):
print("To get help type \"h:\" in prompt") print("To get help type \"h:\" in prompt")
_print_rules(rulebook.rules) _print_rules(rulebook.rules)
while True: while True:
user_input = input("#> ") try:
user_input = input("#> ")
except EOFError:
return
if user_input.startswith("h:"): if user_input.startswith("h:"):
print_help() print_help()
elif user_input.startswith("r:"): elif user_input.startswith("r:"):