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