Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion exercises/practice/prism/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Consider this crystal array configuration:
{
"start": { "x": 0, "y": 0, "angle": 0 },
"prisms": [
{ "id": 3, "x": 30, "y": 10, "angle": 45 },
{ "id": 1, "x": 10, "y": 10, "angle": -90 },
{ "id": 2, "x": 10, "y": 0, "angle": 90 },
{ "id": 3, "x": 30, "y": 10, "angle": 45 },
{ "id": 4, "x": 20, "y": 0, "angle": 0 }
]
}
Expand All @@ -34,3 +34,5 @@ The beam was traveling at 90°, so after refraction it's now at 0° (90° + (-90
**Step 3**: From position `(10, 10)`, the beam travels horizontally and encounters **Crystal #3** at position `(30, 10)`.
This crystal refracts the beam by 45°, changing its direction to 45°.
The beam continues into empty space beyond the array.

!["A graph showing the path of a laser beam refracted through three prisms."](https://assets.exercism.org/images/exercises/prism/laser_path-light.svg)
4 changes: 2 additions & 2 deletions exercises/practice/prism/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
".meta/proof.ci.ts"
]
},
"blurb": "Calculate the path of a laser through reflective prisms.",
"blurb": "Calculate the path of a laser through refractive prisms.",
"custom": {
"version.tests.compatibility": "jest-29",
"flag.tests.task-per-describe": false,
"flag.tests.may-run-long": false,
"flag.tests.includes-optional": false,
"flag.tests.jest": true,
"flag.tests.tstyche": false
},
}
"source": "FraSanga",
"source_url": "https://github.com/exercism/problem-specifications/pull/2625"
}