int b1 = 9;
int b2 = 8;
int
//button status
boolean bu1 =0;
boolean bu2 =0;
//Status of whether or not a button has been pressed
int hold = 0;
void setup() {
//allows you to see on a computer who buzzed in first
Serial.begin(9600);
//Lockout Status LED pin with is statndard on the Arduino Board(s)
pinMode(13, OUTPUT);
//Button inputs defined
pinMode(b1, INPUT);
pinMode(b2, INPUT);
//The delay allows time for the voltage to stabilize (exp. because the electronics are not removed from the buttons!)
delay(1000);
}
void loop() {
//Read to see if a button is pushed
if(hold == 0){
bu1 = digitalRead(b1);
bu2 = digitalRead(b2);
//player 1
if(digitalRead(b1)==HIGH||digitalRead(b2)==LOW)
{
hold=1; //lockout the other users
Serial.println("Player 1");
}
//player 2
if(digitalRead(b2)==HIGH||digitalRead(b1)==LOW){
hold=1; //lockout the other users
Serial.println("Player 2");
}
}
else{
digitalWrite(13, HIGH); // set the LED on to indicate that the other users are locked out
}
}
void time(){
delay(15000);
}
[font=Verdana][/font]
Sir i need a little help..i am a beginner here,,i dont think this gonna work..

please help for better code..
i want to output the first button who pressed first. thanks