title: Java Networking - Client and server
body: <p>I'm quite new to Java and have just started Networking so I apologize in advance for any stupid questions. I have a basic game in which a player (or bot) can move around a map until it finds items and exits, but using networking I'd like to be able for the player and the bot to play on the same map simultaneously over a server. </p>
  
  <p>I have 5 classes:</p>
  
  <ul>
  <li>GameRules - Controls the game logic/rules</li>
  <li>Map - Contains the map.</li>
  <li>Player - Represents a player.</li>
  <li>Bot - Plays the game as a bot.</li>
  <li>PlayGame - Controls the interaction with the game through CLI.</li>  
  </ul>
  
  <p>I'm pretty sure GameRules and Map would be on the server side, and PlayGame would be on the client side, however I'm not sure where Bot and Player class stand? And also, do I merge GameRule and Map into one class, or put a socket in each class?</p>
  
  <p>Thanks a lot.</p>