Skip to content

Commit

Permalink
Add the trick explanation steps and an example.
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayKumarr committed Aug 28, 2017
1 parent 93f0d8f commit 57297e5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions js/learnTrick.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,18 @@ function getSteps() {
'Step 2: Find x * y',
'Step 3: Multiply both numbers’ one digit',
'Answer = Step 2 | Step 3'
],

/*
- Add a new key-value pair for the new trick.
- Key: Corresponding array index in the homework_questions and tricksList array
- Value: An array with steps as string entries.
[
'Explain the trick step by step.',
'Keep the steps limited to characters to not exceed the space',
'Number of theory steps to be equal to the example steps'
]
*/
}

var all_example_steps = {
Expand Down Expand Up @@ -216,7 +227,18 @@ function getSteps() {
'4 * 5 = 20',
'3 * 7 = 21',
'Answer = 2021'
],

/*
- Add a new key-value pair for the new trick.
- Key: Corresponding array index in the homework_questions and tricksList array
- Value: An array with steps as string entries.
[
'Explain the example step by step corresponding to your theory.',
'Keep the characters limited to not exceed the space',
'Number of theory steps to be equal to the example steps'
]
*/
}


Expand Down

0 comments on commit 57297e5

Please sign in to comment.