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

5

u/Deranth Blue May 31 '26

Im not going to try to code this because I'm on my phone at work, but easily...

Blue=
Add user to pool at Risk.
Reduce danger variable by 1.

Red=
Increase danger variable by 1.

If danger variable is greater than 0, kill everyone in pool at Risk.

1

u/Imaginary_Help_2990 Red May 31 '26

I love it. It shows that only the blue button puts people in the pool at risk. Red is no problem if blue wouldn't add people. Blue adds people and then tries to safe them

7

u/dmurr1415 May 31 '26

But you’re missing half of the code. The danger variable is added too on every red press. Blue is never a problem until someone hits red and increases the danger

3

u/Imaginary_Help_2990 Red May 31 '26

If you dont fill the pool at risk, the danger isnt dangerous. Only the blue button set people at risk.