Original Post
Okay, this is a rather general question, I was just hoping to get a little bit of feedback from people more experienced than I. I learned how to program in C, taking a more procedural approach to any application/game I've written. And now, naturally, this is the way I tend to approach anything I code while I try to figure it out in my head, or put the design on paper. I would like to ween myself off of this approach, and start to use a more object oriented design...and am trying to get more comfortable with C++ and classes and objects. My question is: I am currently completing a connect 4 game that I wrote, and I am not having any problems with the game itself. I have it mostly broken up into classes, and its working fine. However, I have about 6 functions that all relate to the computer AI. All I do is call one function which calls these other functions on its own, and then it returns the best move to me. Now it seems a bit constraining for me to have to put this all in a class, and then declare a new instance of this class, just for one method call...the class doesn't contain any variables or anything besides the functions. I guess I was just hoping for some guidance...from an 'object-oriented' standpoint, would I still want to make a class of this? Would it be okay just to put the functions all in a seperate .cpp file but not within a class. Maybe use a namespace? Or is it just totally preference and what works for me? I am trying to develope my style so that it would be logical, as well as easy for other people to use if I were to work in a group or at a job. Any suggestions/advice would be MUCH appreciated. Thanks!