Hi I'm currently writing an Othello game using the Windows API.
I have 3 classes in my program, the first class is simply called "Othello" and it handles almost everything. I also have a class called Field that's used to control which fields are black which are white etc. My last class is the class player which is used to store the player's name and score etc.
My question is this, if I wanted to to add the ability to play games online would I rather:
1. Add a new class called Network or something similar which handles everything, send and receive packets, establishing a connection etc and make Othello derive from that class.
2. As above but instead make class Network a member of class Othello.
3. Just add all the network functions to the class Othello.
4. Something else.
I'm also wondering if the best way to write somewhat small applications (say 2 - 3k lines of code) like this game using a class that basically has the name of the game or application that handles everything.
I'm sorry if I've missed any good texts or books regarding this topic or if my questions are too obvious or general.
Edited 6 Years Ago by kerp: typo