mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-24 20:01:39 -05:00
chore(curriculum): quotes around strings in tower of hanoi puzzle (#53569)
This commit is contained in:
@@ -7,7 +7,7 @@ dashedName: step-20
|
||||
|
||||
# --description--
|
||||
|
||||
When the remainder of the move number divided by 3 is equal to 2, the movement is allowed between `A` and `B` (the source and the auxiliary rods).
|
||||
When the remainder of the move number divided by 3 is equal to 2, the movement is allowed between `'A'` and `'B'` (the source and the auxiliary rods).
|
||||
|
||||
Add an `elif` statement for that. Then, print the appropriate string if the condition is met.
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ dashedName: step-21
|
||||
|
||||
# --description--
|
||||
|
||||
Finally, when the move number divided by 3 has no remainder, the movement is allowed between `B` and `C`.
|
||||
Finally, when the move number divided by 3 has no remainder, the movement is allowed between `'B'` and `'C'`.
|
||||
|
||||
Add an `elif` statement for that. Then, print the appropriate string if the condition is met.
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ It looks like it's working! But the output is not very readable. Print a new lin
|
||||
|
||||
# --hints--
|
||||
|
||||
You should pass a string with a new line character (`\n`) as the second argument for your two `print(rods)` calls.
|
||||
You should pass a string with a new line character (`'\n'`) as the second argument for your two `print(rods)` calls.
|
||||
|
||||
```js
|
||||
({ test: () => assert.match(code, /print\(\s*rods\s*,\s*('|")\\n\1\s*\)(?=.*print\(\s*rods\s*,\s*('|")\\n\2\s*\))/s) })
|
||||
|
||||
Reference in New Issue
Block a user