So kind of like a game where you have a host and 2 players? or just 2 players?
You can have a host program and multiple clients(players) connected and share data between them, through communications.
That's how my Monopoly game is set up, a host program and up to 8 clients and it communicates through IRC chat room chatter.
or if its all on the same machine you could just have a common data file open by both programs to share the values. Least I believe you can do that, I've never tried, having 2 programs open the same file that is.