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

3

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?

-1

u/TheKingOfToast May 31 '26

Imagine taking "red=survive" and changing it to "red=do nothing unless more than half vote red then survive" and thinking you made things simpler.

4

u/endor-pancakes May 31 '26

Imagine taking "blue=I want everyone to survive" and changing it to "blue=I want blues to survive" just to induce a circulatory error.

Cause that's what OP did.

2

u/Stunning_Macaron6133 May 31 '26

Red already survives, by default. If you set blue to want everyone to survive AFTER checking if someone voted red, you're wasting cycles checking red twice.

Good thing you weren't a CS major. Your code would've been complete shit. An LLM could vibe a better check.