Skip to content

Commit

Permalink
Change prepareCircuit() prompt to clarify that a Number is wanted by …
Browse files Browse the repository at this point in the history
…the user
  • Loading branch information
Altan Nagji committed Aug 13, 2021
1 parent 0a4aec8 commit fd302f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/quantum-js-cli/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ function prepareCircuit() {
console.clear();
let circuit;
while(!selection) {
console.log("Please select a method to begin circuit creation: ");
//the following prompt requires the user to select between a number of options to create a circuit. they will enter the NUMBER that corresponds with the action they'd like.
console.log("Please select a method (number value) to begin circuit creation: ");
console.log("1. From Scratch\n" +
"2. From Text Diagram\n"
/*+ "3. From Table Transposed\n"*/);
"2. From Text Diagram\n");
selection = Number(prompt(mark));
switch(selection) {
case 1:
Expand Down

0 comments on commit fd302f3

Please sign in to comment.