Problem with Bazz game code

Hello, I have this simple code to run the Bazz game. The object is to run siren&led when winning or run different siren&led when losing. When the handle touches the wire( course1) the led&siren start, and when touches the endpoint(course2) other siren&led start.

This is the link for simulation bazz - Wokwi ESP32, STM32, Arduino Simulator
I added buttons instead of the wire and handle

I think the code has multiple errors. I want when the siren&led for winning to start I cannot start the other siren&led until the reset button is pressed
Thanks

The code runs without errors.

The code seemingly works, but when pressing the reset button after pushing the red and green buttons the reset button stops working!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.