cli change
This commit is contained in:
+12
-8
@@ -59,6 +59,17 @@ def run_classic_cli():
|
||||
print("\n" + "=" * 50)
|
||||
print("Done.")
|
||||
|
||||
def run_exhaustive_cli():
|
||||
steps = prompt_int("How many steps? (1–100): ", 1, 100)
|
||||
target_reg = prompt_int("Target register (0–7): ", 0, 7)
|
||||
|
||||
print("-" * 50)
|
||||
run_exhaustive(steps, target_reg)
|
||||
|
||||
print("\n" + "=" * 50)
|
||||
print("Done.")
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
print("=" * 50)
|
||||
@@ -74,14 +85,7 @@ def main():
|
||||
if mode == 1:
|
||||
run_classic_cli()
|
||||
else:
|
||||
steps = prompt_int("How many steps? (1–100): ", 1, 100)
|
||||
target_reg = prompt_int("Target register (0–7): ", 0, 7)
|
||||
|
||||
print("-" * 50)
|
||||
run_exhaustive(steps, target_reg)
|
||||
|
||||
print("\n" + "=" * 50)
|
||||
print("Done.")
|
||||
run_exhaustive_cli()
|
||||
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user