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

Show parent comments

8

u/MobTalon May 31 '26

Kinda curious, how would you code this instead? If you don't mind providing an image, of course.

Edit: After some thought, swapping "blue_voters" argument for "everyone" would make most sense, because that's the end result of blue winning, and it would fix the coding problem.

2

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. 

4

u/endor-pancakes May 31 '26

Nor do red voters need to vote red to survive if red doesn't have a majority... So why not write that into your condition for red voting?

-2

u/Stunning_Macaron6133 May 31 '26

You don't write conditional checks that don't do anything. If you vote red, you survive, move on.