It looks like you are not checking whether the input is checked on not.
For each of the inputs ( scoreInputs.foreach((input) . . . ) you are checking whether they are not disabled. You’re calling updateScore passing the input.value for the argument selectedValue, whether they’re checked or not:
The code might be working if you are getting a false-positive.
What I mean is, if you only have 1 option to choose from and you check it, then it will also be the only option that is also not disabled. So, it will appear to work, but not for the right reasons.
Try a scenario where you have more than 1 enabled radio button and you choose one.
Trying your code, I rolled until I got a three-of-a-kind, then I selected “none of the above” and it still added my 3-of-a-kind to my total. This means that any available options whether checked or not are going to be added to your total.
Beware the false positives! They’re a real pain.
Hope that helps.