int ledpin1 = 2; // here we declare all the output led pins and all the input analog pins int ledpin2 = 3; int analogpin1 = A0; int analogpin2 = A1; int threshold = 1021; // here is the threshold value void setup() { // put your setup code here, to run once: pinMode(ledpin1, OUTPUT); // here we set all the output pins to output and all the input pins to input mode pinMode(ledpin2, OUTPUT); pinMode(analogpin1, INPUT); pinMode(analogpin2, INPUT); } void loop() { // put your main code here, to run repeatedly: int analogvalue1 = analogRead(analogpin1); // here we declare analogvalue1 and 2 to the serial value of the analog pins int analogvalue2 = analogRead(analogpin2); if(analogvalue1 > threshold){ // here if the A0 goes high then the ledpin1 will go high and the ledpin2 will go low digitalWrite(ledpin1, HIGH); digitalWrite(ledpin2, LOW); } if(analogvalue2 > threshold){ // here if A1 goes high then the ledpin2 will go high and the ledpin1 will go low digitalWrite(ledpin2, HIGH); digitalWrite(ledpin1, LOW); } } // you can have 6 players just declare the pins and write new if statements