I answered the questions, and completed the code, but if I roll, say “1, 2, 3, 4, 6” it doesn’t give me the “Small Straight” option. Probably just an oversight, and easy to update with a “forEach” loop rather than just an “includes”
I can’t reproduce your issue. includes should work correctly - includes does the same thing as a for loop checking to see if the array includes the value.
This will work when rolled die have one repeat, ie. 1, 2, 2, 3, 4 - Set handles the duplicated 2.
On the other hand when all die have unique numbers, ie. 1, 2, 3, 4, 6, the uniqueNumbersStr will be "12346" and it will not be detected.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.