<div>Hi everyone,</div><div><br></div><div>I&#39;ve decided to write a Tic-Tac-Toe gameserver and client(no biggie, just for getting used to twisted as I&#39;m pretty new to it). The gameserver facilitates the connection between two clients and maintains the game state.</div>
<div><br></div><div>I&#39;m having trouble deciding how to create factories and protocols for the server.</div><div><br></div><div>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 &quot;MOV 2 3&quot; to specify co-ordinates on the board, when prompted by a &quot;MAKE MOVE&quot; from the server.</div>
<div><br></div><div>So the server should alternate between connections, read and send data. How do I accomplish something such as this?</div><div><br></div><div>Thanks,<br clear="all">zm<br>
</div>