[Twisted-Python] Small practice application

Zubin Mithra zubin.mithra at gmail.com
Wed Sep 29 21:49:49 EDT 2010


Hi everyone,

I've decided to write a Tic-Tac-Toe gameserver and client(no biggie, just
for getting used to twisted as I'm pretty new to it). The gameserver
facilitates the connection between two clients and maintains the game state.

I'm having trouble deciding how to create factories and protocols for the
server.

What I am expecting is a toss to decide who plays first followed by a move
from client in a sequential manner. The client sends messages of the format
"MOV 2 3" to specify co-ordinates on the board, when prompted by a "MAKE
MOVE" from the server.

So the server should alternate between connections, read and send data. How
do I accomplish something such as this?

Thanks,
zm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20100930/66f063e2/attachment.htm 


More information about the Twisted-Python mailing list