Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A game of tic tac toe to teach myself network programming
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
PodSixNet
.gitignore
README
main.py
screen_lib.py
ttt_client.py
ttt_core.py
ttt_screen.py
ttt_server.py

README

Originally I was going to use twisted for networking but I couldn't work it
out and any questions I asked seemed to be misunderstood to the extent I
figured twisted was not the way to go on this one.

I found http://pygame.org/project-NetPong-1377-.html and produced
mp tic_tac_toe.

Running the program normally:

    python main.py

Running the program to connect to another server:

    python main.py <address> <port>
    
    e.g. python main.py 192.168.0.52 31500

Running two copies of the program at the same time can be achieved with:

    python main.py dual

This will use multiprocessing to start two clients rather than just one.

Something went wrong with that request. Please try again.