Wiring Arduino Uno's together for same COM Resources?

EnigmaCypher7:

I'll assume that the code above is on the master.
I know it's inellegant, but this is the way I'd do it to test the idea.
Connect pins 2 on the master to pins 6 (set as input) on the slave, through a 1K resistor.
Connect pins 3 on the master to pins 7 (set as input) on the slave, through a 1K resistor.
(to avoid confusion I've used different pins, but you could use any available)
code for the slave

if (digitalRead(pin6)==HIGH){  //look to see what level master pin 2 is at
    digitalWrite(LEDpin,HIGH);  //turn on LED
    digitalWrite(pin7, HIGH);  //signal back to master pin 3 that job done.
}
else{
    digitalWrite(LEDpin,LOW);  //turn off LED
    digitalWrite(pin7, LOW);  //signal back to master pin 3 that job done.
}

For master

 switch (inByte) {
    \\ Light up a Led on slave as a Test
    case 'q':    
      digitalWrite(2, HIGH);
      delay (1); //Give time for the slave to reply
      if(digital read(3)==HIGH){  //Look at slave's pin 7 to see if job done
         Serial.println("Slave's LED On");
      }
      break;
    case 'w':    
      digitalWrite(2, LOW);
      delay (1); //Give time for the slave to reply
      if(digital read(3)==LOW){  //Look at slave's pin 7 to see if job done 
          Serial.println("Slave's LED Off");
      }
      break;