Skip to content

Commit

Permalink
"redo selection" instead of "select again"
Browse files Browse the repository at this point in the history
  • Loading branch information
solodov committed Mar 12, 2024
1 parent 7113984 commit 4aed4e1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions unitary/examples/quantum_rpg/battle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_battle():
q) Read Quantopedia.
?) Help.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
""".strip()
)

Expand All @@ -66,7 +66,7 @@ def test_bad_monster():
?) Help.
Invalid number selected.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
""".strip()
)

Expand Down Expand Up @@ -101,7 +101,7 @@ def test_higher_level_players():
q) Read Quantopedia.
?) Help.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
------------------------------------------------------------
Aaronson Analyst 1) watcher Observer
3QP (0|1> 0|0> 3?) 1QP (0|1> 1|0> 0?) *DOWN*
Expand All @@ -114,7 +114,7 @@ def test_higher_level_players():
q) Read Quantopedia.
?) Help.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
""".strip()
)

Expand Down Expand Up @@ -162,7 +162,7 @@ def test_battle_loop():
q) Read Quantopedia.
?) Help.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
------------------------------------------------------------
Battle Summary
Expand Down Expand Up @@ -197,7 +197,7 @@ def test_battle_help():
amplitude. Try to measure the enemy qubits as |0> to defeat them.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
------------------------------------------------------------
Battle Summary
Expand Down Expand Up @@ -229,7 +229,7 @@ def test_read_quantopedia_not_known():
?) Help.
You do not have information on Observer yet.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
------------------------------------------------------------
Battle Summary
Expand Down Expand Up @@ -263,7 +263,7 @@ def test_read_quantopedia():
Observers are known to frequent quantum events.
They will measure qubits in order to find out their values.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
------------------------------------------------------------
Battle Summary
Expand Down
2 changes: 1 addition & 1 deletion unitary/examples/quantum_rpg/encounter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_encounter():
q) Read Quantopedia.
?) Help.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
""".strip()
)

Expand Down
2 changes: 1 addition & 1 deletion unitary/examples/quantum_rpg/input_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_multiple_user_inputs(
while True:
inputs = [p() for p in prompts]
print("[enter]) Confirm selection.", file=file)
print("r) Select again.", file=file)
print("r) Redo selection.", file=file)
while True:
a = get_user_input("Choose your action: ")
if a == "r":
Expand Down
6 changes: 3 additions & 3 deletions unitary/examples/quantum_rpg/main_loop_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def test_battle() -> None:
q) Read Quantopedia.
?) Help.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
------------------------------------------------------------
Battle Summary
Expand Down Expand Up @@ -434,7 +434,7 @@ def test_lost_battle() -> None:
q) Read Quantopedia.
?) Help.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
Observer watcher measures Mensing_1 as HURT.
------------------------------------------------------------
Battle Summary
Expand Down Expand Up @@ -503,7 +503,7 @@ def test_escaped_battle():
q) Read Quantopedia.
?) Help.
[enter]) Confirm selection.
r) Select again.
r) Redo selection.
Observer watcher measures Mensing_1 as HEALTHY.
------------------------------------------------------------
Battle Summary
Expand Down

0 comments on commit 4aed4e1

Please sign in to comment.