Help with my robot code

There is not enough information to translate this pseudocode (or whatever it is) to C++ for the Arduino.

  1. There is no description of how the robot is supposed to behave given the inputs. This is critical.
  2. There is no information given to correlate the hardware above to the inputs and I see no outputs to correlate to the relays, motor, or electric valve.
  3. How is the valve interfaced?
  4. What kind of motor do you have?
  5. What sense (LOW, HIGH versus open/close) are the relays?
  6. What sense are the buttons (LOW, HIGH versus Pressed/Not pressed)?

A schematic and the Arduino board would be very helpful too.