2 arduinos talking

You can wire serial tx of one board to the serial rx of the other and vice-versa, and use the Serial api, or do the same using two other digital pins and use the NewSoftSerial library.