Java Tic Tac Toe architecture
<p>I'm currently having a major brain fart :).</p>

<p>My plan was to build a simple swing based tic tac toe application in Java.  I had planned for the app to allow for one player, two player local and two player remote options.  I've got the one and two player local versions working fine but am struggling to get my head around the two player remote option.</p>

<p>Worth noting in the Netbeans project I have the gui in a separate package from the logic.</p>

<p>I've fried my brain thinking about all the options.</p>

<ol>
<li><p>Like having a client server architecture but then if the client is running on a different pc than the logic this slows down the one player and two player local versions for no reason.</p></li>
<li><p>I'm thinking the entire application (gui + logic) should be distributed amongst the various pc's on the home wirless network.  That way players can play one and two player local games without any unneccesary lag time and see if anyone else is available for a two player remote version.  The question if I go this way is who's logic acts as the server - how does that work?</p></li>
</ol>

<p>Is option 2 the best / only way of going about this because this isn't just a networked game?</p>

<p>Are there any other ways of going about this?</p>

<p>I know doing a tic tac toe game with just a remote game option would be a simple case of a client server architecture but having one player and then a networked version in the same app is tricky.</p>

<p>Thanks,</p>

<p>Paul.</p>
