Using the fewest Unicode characters, write a function that accepts three parameters:
- Total number of dominoes
nth affected domino
- Topple direction of the affected domino (
Once a domino is toppled, it must also topple the remaining dominoes in the same direction.
You should output the dominoes with
| representing a standing domino and
/ representing a domino toppled to the left and right respectively.
10, 5, 1 should return
6, 3, 0 should return