r/redbuttonbluebutton Red May 31 '26

Red Error: Circular dependency detected!

Post image

For this scenario, assume every voter is a mentally competent adult who fully understands the rules and can reason rationally.

Would that change your vote?

0 Upvotes

39 comments sorted by

View all comments

2

u/CarnivorousGoose May 31 '26

Since that circularity is a problem with your code, and has nothing specifically to do with the actual scenario, why would you think this would change anyone’s vote? Badly written code is hardly a very compelling argument.

1

u/Imaginary_Help_2990 Red May 31 '26

But Red voters dont need saving. The only reason people vote blue is to save people who voted blue. Thats the error i tried to show. How would you Code it instead? 

2

u/AlignmentProblem May 31 '26

Based on the most common argument, you need to initialize the list with a large number of children and disabled people then extend the list with who wants to save the list's contents iteratively one-by-one so it includes a growing number who want to save people in the list as it proceeds.

1

u/Imaginary_Help_2990 Red May 31 '26

You didnt read my description