Skip to content

andywoo/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

================================================
Python Command Line Tic-Tac-Toe Game

By Andy Woo

Last updated 12/02/2013

================================================



This was developed using Python 2.7.2. 

These programs use the socket objects in python to communicate synchronously and play a game of tic-tac-toe. 

Lots of feedback is printed on all screens during runtime, including a pretty game board!



To run this program:
=====================

This assumes you have the python interpreter set up already on your system.
From the command line, these programs take the following arguments:

	python server.py <port number>
	python client.py <IP address> <port number>

Arbitrary port numbers can be used as long as they match.
And since the server instance runs on the local machine, the IP in the server code was set to localhost (or 127.0.0.1). 

Ex.:
	python server.py 8005
	python client.py 127.0.0.1 8005

About

A server that hosts a terminal-based tic-tac-toe game between two clients

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages