First of all, excuse me for bad English, I speak Spanish...

Well, my question is how do I implement sockets in my program? I'm working on a little game call "Battleship", I already have how to set your ships and the function to attack, but I need to connect 2 computers to play it, so they must be sending information constantly to the other computer (the information they need to send is the coordinate that the player wants to attack [example: attack on "A6"]). I've been looking for info, and I see that I need to create a server and client program, but I don't understand how it work each, I don't know how to make my program request the other computer's IP or if this it's really necessary... So If anybody can help me with this, please...

PD: i'm working on python 2.6

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.