Skip to content

Add new exercise Prism#2625

Merged
IsaacG merged 21 commits intoexercism:mainfrom
FraSanga:prism
Feb 16, 2026
Merged

Add new exercise Prism#2625
IsaacG merged 21 commits intoexercism:mainfrom
FraSanga:prism

Conversation

@FraSanga
Copy link
Contributor

@github-actions
Copy link
Contributor

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions bot closed this Feb 12, 2026
@tasxatzial tasxatzial reopened this Feb 12, 2026
FraSanga and others added 12 commits February 12, 2026 10:24
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
@FraSanga
Copy link
Contributor Author

I removed the unnecessary tests. I left only two tests with floating-point precision.

FraSanga and others added 4 commits February 12, 2026 21:43
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
@FraSanga
Copy link
Contributor Author

There's a problem with CI. I have no idea what it is. A link is broken (?)

@IsaacG
Copy link
Member

IsaacG commented Feb 12, 2026

There's a problem with CI. I have no idea what it is. A link is broken (?)

Yeah. But it's in the rest-api exercise. Feel free to ignore.

@FraSanga FraSanga marked this pull request as ready for review February 12, 2026 21:23
@FraSanga FraSanga requested a review from a team as a code owner February 12, 2026 21:23
Copilot AI review requested due to automatic review settings February 12, 2026 21:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new exercise called "Prism" to the problem-specifications repository. The exercise involves calculating the path of a laser beam through a field of reflective crystal prisms, where each prism redirects the beam by a specified angle. Students must predict the sequence of crystals that will be hit by the laser.

Changes:

  • Added metadata, introduction, instructions, and canonical test data for the new "Prism" exercise
  • Includes 14 test cases covering edge cases (no prisms, single prism, directional tests) and complex multi-prism scenarios with floating-point precision
  • Provides a detailed walkthrough example explaining how the laser beam interacts with the prisms

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
exercises/prism/metadata.toml Defines exercise metadata including title, blurb, source attribution, and source URL
exercises/prism/introduction.md Provides story context about PRISM (Precariously Redirected Illumination Safety Management) laser calibration system
exercises/prism/instructions.md Contains detailed instructions with an example test case and step-by-step walkthrough of beam behavior
exercises/prism/canonical-data.json Defines 14 test cases with standardized inputs and expected outputs for the findSequence property

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

FraSanga and others added 2 commits February 12, 2026 22:36
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@BethanyG
Copy link
Member

Who asked copilot to chime in? Wow, did that create spam in my inbox.

@FraSanga
Copy link
Contributor Author

I removed the PR from the drafts, maybe that was what triggered it. @BethanyG

@BNAndras
Copy link
Member

I made an example CoffeeScript implementation at exercism/coffeescript#404. The exercise seems like a good addition.

Co-authored-by: András B Nagy <20251272+BNAndras@users.noreply.github.com>
@IsaacG
Copy link
Member

IsaacG commented Feb 15, 2026

+cc @ErikSchierboom for final approval

@IsaacG IsaacG merged commit 4354085 into exercism:main Feb 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants